Skip to content

Explicitly remove the ctx attribute in copy_ast_without_context #19

Explicitly remove the ctx attribute in copy_ast_without_context

Explicitly remove the ctx attribute in copy_ast_without_context #19

Workflow file for this run

name: Tests
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, '3.10', 3.11, 3.12]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --upgrade pip
pip install --upgrade coveralls .[tests]
- name: Test
env:
PURE_EVAL_SLOW_TESTS: 1
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: "test-${{ matrix.python-version }}-${{ matrix.os }}"
COVERALLS_PARALLEL: true
run: |
coverage run --source pure_eval -m pytest
coverage report -m
coveralls --service=github
coveralls:
name: Coveralls Finished
needs: test
runs-on: ubuntu-latest
container: python:3-slim
steps:
- name: Finished
run: |
pip3 install --upgrade coveralls
coveralls --service=github --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}