Updated to pylint and astroid v4.0 and added support for Python 3.14 #2605
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PythonTA Tests | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] | |
| dependency: ["base", "z3-solver"] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Set up Node.js 24 | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| - name: Set up graphviz | |
| run: | | |
| sudo apt-get install -y graphviz | |
| - name: Cache pip | |
| uses: actions/[email protected] | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pip- | |
| ${{ runner.os }}- | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip setuptools wheel | |
| pip install -e .[dev,cfg] | |
| if [ "${{ matrix.dependency }}" == "z3-solver" ]; then | |
| pip install .[z3] | |
| fi | |
| - name: Run tests | |
| run: | | |
| if [ "${{ matrix.dependency }}" == "z3-solver" ]; then | |
| pytest -vv --cov python_ta --cov-config=.coveragerc --cov-report lcov \ | |
| --ignore=tests/test_type_constraints \ | |
| --ignore=tests/test_type_inference \ | |
| --ignore=tests/test_debug/test_accumulation_table.py \ | |
| --ignore=tests/test_debug/test_recursion_table.py \ | |
| --ignore=tests/test_debug/test_snapshot_tracer.py | |
| pytest -vv tests/test_debug/test_accumulation_table.py tests/test_debug/test_recursion_table.py tests/test_debug/test_snapshot_tracer.py | |
| else | |
| pytest -vv --cov python_ta --cov-config=.coveragerc --cov-report lcov --exclude-z3 \ | |
| --ignore=tests/test_type_constraints \ | |
| --ignore=tests/test_type_inference \ | |
| --ignore=tests/test_debug/test_accumulation_table.py \ | |
| --ignore=tests/test_debug/test_recursion_table.py \ | |
| --ignore=tests/test_debug/test_snapshot_tracer.py | |
| pytest -vv tests/test_debug/test_accumulation_table.py tests/test_debug/test_recursion_table.py tests/test_debug/test_snapshot_tracer.py | |
| fi | |
| - name: Upload test coverage to coveralls.io | |
| uses: coverallsapp/[email protected] | |
| env: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| flag-name: run-${{ matrix.python-version }}-${{ matrix.dependency }} | |
| parallel: true | |
| finish: | |
| needs: test | |
| if: github.event.pull_request.draft == false | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Coveralls Finished | |
| uses: coverallsapp/[email protected] | |
| env: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| parallel-finished: true | |
| carryforward: "run-3.10-base,run-3.10-z3-solver,run-3.11-base,run-3.11-z3-solver,run-3.12-base,run-3.12-z3-solver,run-3.13-base,run-3.13-z3-solver,run-3.14-base,run-3.14-z3-solver" | |
| docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python 3.14 | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.14 | |
| - name: Cache pip | |
| uses: actions/[email protected] | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pip- | |
| ${{ runner.os }}- | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip setuptools wheel | |
| pip install -e .[dev,cfg,z3] | |
| - name: Generate docs | |
| run: sphinx-build -b html -W docs docs/_build |