Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ on:
jobs:
ci:
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
# Pinned: ubuntu-latest (26.04) has no Python 3.9 builds for setup-python.
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
Expand All @@ -29,17 +30,20 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[test]" coveralls
pip install -e ".[test]"
- name: Run ruff
run: ruff check .
- name: Run tests (modern default + router)
run: coverage run -m unittest discover -s tests -p "tests_*.py"
- name: Run frozen v3 tests against the legacy engine
run: python -m tests.legacy.run_against_legacy
- name: Coveralls
# Coverage upload is informational; a Coveralls outage must not fail CI.
# Coverage upload is informational; a Coveralls outage, or its deps
# (pydantic-core) not building on an interpreter such as PyPy, must not fail CI.
continue-on-error: true
run: coveralls --service=github
run: |
pip install coveralls
coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: python-${{ matrix.python-version }}
Expand Down
Loading