Skip to content

Commit

Permalink
chore: add 3.13 to CI jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
jnoortheen committed Mar 19, 2024
1 parent 6c68541 commit cce4673
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ permissions:

jobs:
ci:
env:
DEFAULT_PYTHON_VERSION: 3.12
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -32,10 +34,10 @@ jobs:
- macOS-latest
- windows-latest
python-version:
- "3.9"
- "3.10"
- "3.11"
- "3.12-dev"
- "3.12"
- "3.13-dev"
name: Test Python ${{ matrix.python-version }} ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand All @@ -54,20 +56,20 @@ jobs:
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tmate_debug_enabled }}
timeout-minutes: 15
- name: Run QA Checks
if: ${{ startsWith(matrix.os, 'ubuntu') && startsWith(matrix.python-version, '3.11') }}
if: ${{ startsWith(matrix.os, 'ubuntu') && startsWith(matrix.python-version, env.DEFAULT_PYTHON_VERSION) }}
run: python -m xonsh run-tests.xsh validate-news-items
- name: Run tests
if: ${{ !startsWith(matrix.python-version, '3.11') }}
if: ${{ !startsWith(matrix.python-version, env.DEFAULT_PYTHON_VERSION) }}
run: |
python -m pip install . --no-deps
python -m xonsh run-tests.xsh test -- --timeout=240
- name: Run tests with coverage
if: ${{ startsWith(matrix.python-version, '3.11') }}
if: ${{ startsWith(matrix.python-version, env.DEFAULT_PYTHON_VERSION) }}
run: |
python -m pip install -e . --no-deps
python -m xonsh run-tests.xsh test --report-coverage -- --timeout=240
- name: Upload coverage to Codecov
if: ${{ startsWith(matrix.python-version, '3.11') }}
if: ${{ startsWith(matrix.python-version, env.DEFAULT_PYTHON_VERSION) }}
uses: codecov/codecov-action@v4
with:
verbose: true
Expand Down

0 comments on commit cce4673

Please sign in to comment.