Skip to content

Fix evaluation of types for typing classes #29

Fix evaluation of types for typing classes

Fix evaluation of types for typing classes #29

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python package
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
tests:
name: "Run tests with Python ${{ matrix.python-version }}"
runs-on: "ubuntu-latest"
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
python-version:
- "pypy3.9"
- "pypy3.10"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
experimental: [ false ]
include:
- python-version: "~3.13.0-0"
experimental: true
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: "actions/setup-python@v4"
with:
python-version: "${{ matrix.python-version }}"
cache: "pip"
cache-dependency-path: |
requirements-docs.txt
requirements-tests.txt
pyproject.toml
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run linting checks
run: scripts/lint.sh
- name: Run tests
run: scripts/tests.sh
- name: Enforce coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
check: # This job does nothing and is only used for the branch protection
name: ✅ Ensure the required checks passing
if: always()
needs:
- tests
runs-on: ubuntu-latest
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}