diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index cc2e3f75..dd3ace05 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -14,11 +14,21 @@ jobs: name: "Run tests with Python ${{ matrix.python-version }}" runs-on: "ubuntu-latest" + continue-on-error: ${{ matrix.experimental }} strategy: - # Complete all jobs even if one fails fail-fast: false matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "pypy3.9"] + python-version: + - "pypy3.9" + - "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 @@ -41,3 +51,15 @@ jobs: uses: codecov/codecov-action@v3 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) }}