mirror of
https://github.com/fastapi/fastapi.git
synced 2026-09-14 13:36:21 +08:00
👷 Run CodSpeed tests in parallel to other tests to speed up CI (#14586)
This commit is contained in:
committed by
GitHub
parent
e1bd9f3e33
commit
6539b80d9f
@@ -54,10 +54,14 @@ jobs:
|
|||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
python-version: "3.12"
|
python-version: "3.12"
|
||||||
coverage: coverage
|
coverage: coverage
|
||||||
# Ubuntu with 3.13 needs coverage for CodSpeed benchmarks
|
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
python-version: "3.13"
|
python-version: "3.13"
|
||||||
coverage: coverage
|
coverage: coverage
|
||||||
|
# Ubuntu with 3.13 needs coverage for CodSpeed benchmarks
|
||||||
|
- os: ubuntu-latest
|
||||||
|
python-version: "3.13"
|
||||||
|
coverage: coverage
|
||||||
|
codspeed: codspeed
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
python-version: "3.14"
|
python-version: "3.14"
|
||||||
coverage: coverage
|
coverage: coverage
|
||||||
@@ -85,12 +89,13 @@ jobs:
|
|||||||
run: uv pip install -r requirements-tests.txt
|
run: uv pip install -r requirements-tests.txt
|
||||||
- run: mkdir coverage
|
- run: mkdir coverage
|
||||||
- name: Test
|
- name: Test
|
||||||
|
if: matrix.codspeed != 'codspeed'
|
||||||
run: bash scripts/test.sh
|
run: bash scripts/test.sh
|
||||||
env:
|
env:
|
||||||
COVERAGE_FILE: coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }}
|
COVERAGE_FILE: coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }}
|
||||||
CONTEXT: ${{ runner.os }}-py${{ matrix.python-version }}
|
CONTEXT: ${{ runner.os }}-py${{ matrix.python-version }}
|
||||||
- name: CodSpeed benchmarks
|
- name: CodSpeed benchmarks
|
||||||
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.13'
|
if: matrix.codspeed == 'codspeed'
|
||||||
uses: CodSpeedHQ/action@v4
|
uses: CodSpeedHQ/action@v4
|
||||||
env:
|
env:
|
||||||
COVERAGE_FILE: coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }}
|
COVERAGE_FILE: coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }}
|
||||||
|
|||||||
Reference in New Issue
Block a user