diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 146676b1e6..92861b78fc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -50,7 +50,7 @@ jobs: matrix: os: [ windows-latest, macos-latest ] python-version: [ "3.14" ] - deprecated-tests: [ "false" ] + deprecated-tests: [ "no-deprecation" ] uv-resolution: - highest starlette-src: @@ -61,33 +61,33 @@ jobs: python-version: "3.10" coverage: coverage uv-resolution: lowest-direct - deprecated-tests: "false" + deprecated-tests: "no-deprecation" - os: windows-latest python-version: "3.12" coverage: coverage uv-resolution: lowest-direct - deprecated-tests: "false" + deprecated-tests: "no-deprecation" - os: ubuntu-latest python-version: "3.13" coverage: coverage uv-resolution: highest - deprecated-tests: "false" + deprecated-tests: "no-deprecation" - os: ubuntu-latest python-version: "3.13" uv-resolution: highest codspeed: codspeed - deprecated-tests: "false" + deprecated-tests: "no-deprecation" - os: ubuntu-latest python-version: "3.14" coverage: coverage uv-resolution: highest starlette-src: starlette-git - deprecated-tests: "false" + deprecated-tests: "no-deprecation" - os: ubuntu-latest python-version: "3.14" coverage: coverage uv-resolution: highest - deprecated-tests: "true" + deprecated-tests: "test-deprecation" # - os: macos-latest # python-version: "3.14t" # coverage: coverage @@ -97,7 +97,7 @@ jobs: python-version: "3.14t" coverage: coverage uv-resolution: highest - deprecated-tests: "false" + deprecated-tests: "no-deprecation" fail-fast: false runs-on: ${{ matrix.os }} env: @@ -127,20 +127,20 @@ jobs: if: matrix.starlette-src == 'starlette-git' run: uv pip install "git+https://github.com/Kludex/starlette@main" - name: Install deprecated libraries just for testing - if: matrix.deprecated-tests == 'true' + if: matrix.deprecated-tests == 'test-deprecation' run: uv pip install orjson ujson - run: mkdir coverage - name: Test run: uv run --no-sync bash scripts/test-cov.sh env: - COVERAGE_FILE: coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }} - CONTEXT: ${{ runner.os }}-py${{ matrix.python-version }} + COVERAGE_FILE: coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }}-${{ matrix.deprecated-tests}} + CONTEXT: ${{ runner.os }}-py${{ matrix.python-version }}-${{ matrix.deprecated-tests}} # Do not store coverage for all possible combinations to avoid file size max errors in Smokeshow - name: Store coverage files if: matrix.coverage == 'coverage' uses: actions/upload-artifact@v7 with: - name: coverage-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/coverage/.coverage.*') }} + name: coverage-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.deprecated-tests}}-${{ hashFiles('**/coverage/.coverage.*') }} path: coverage include-hidden-files: true