Browse Source

add a test configuration that installs ujson/orjson and checks the deprecated tests

pull/15149/head
svlandeg 4 months ago
parent
commit
98bbeb27d5
  1. 15
      .github/workflows/test.yml

15
.github/workflows/test.yml

@ -50,6 +50,7 @@ jobs:
matrix: matrix:
os: [ windows-latest, macos-latest ] os: [ windows-latest, macos-latest ]
python-version: [ "3.14" ] python-version: [ "3.14" ]
deprecated-tests: false
uv-resolution: uv-resolution:
- highest - highest
starlette-src: starlette-src:
@ -60,23 +61,33 @@ jobs:
python-version: "3.10" python-version: "3.10"
coverage: coverage coverage: coverage
uv-resolution: lowest-direct uv-resolution: lowest-direct
deprecated-tests: false
- os: windows-latest - os: windows-latest
python-version: "3.12" python-version: "3.12"
coverage: coverage coverage: coverage
uv-resolution: lowest-direct uv-resolution: lowest-direct
deprecated-tests: false
- os: ubuntu-latest - os: ubuntu-latest
python-version: "3.13" python-version: "3.13"
coverage: coverage coverage: coverage
uv-resolution: highest uv-resolution: highest
deprecated-tests: false
- os: ubuntu-latest - os: ubuntu-latest
python-version: "3.13" python-version: "3.13"
uv-resolution: highest uv-resolution: highest
codspeed: codspeed codspeed: codspeed
deprecated-tests: false
- os: ubuntu-latest - os: ubuntu-latest
python-version: "3.14" python-version: "3.14"
coverage: coverage coverage: coverage
uv-resolution: highest uv-resolution: highest
starlette-src: starlette-git starlette-src: starlette-git
deprecated-tests: false
- os: ubuntu-latest
python-version: "3.14"
coverage: coverage
uv-resolution: highest
deprecated-tests: true
# - os: macos-latest # - os: macos-latest
# python-version: "3.14t" # python-version: "3.14t"
# coverage: coverage # coverage: coverage
@ -85,6 +96,7 @@ jobs:
python-version: "3.14t" python-version: "3.14t"
coverage: coverage coverage: coverage
uv-resolution: highest uv-resolution: highest
deprecated-tests: false
fail-fast: false fail-fast: false
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
env: env:
@ -113,6 +125,9 @@ jobs:
- name: Install Starlette from source - name: Install Starlette from source
if: matrix.starlette-src == 'starlette-git' if: matrix.starlette-src == 'starlette-git'
run: uv pip install "git+https://github.com/Kludex/starlette@main" run: uv pip install "git+https://github.com/Kludex/starlette@main"
- name: Install deprecated libraries just for testing
if: matrix.deprecated-tests == 'true'
run: uv pip install orjson ujson
- run: mkdir coverage - run: mkdir coverage
- name: Test - name: Test
run: uv run --no-sync bash scripts/test-cov.sh run: uv run --no-sync bash scripts/test-cov.sh

Loading…
Cancel
Save