Browse Source
👷 Run CodSpeed tests in parallel to other tests to speed up CI (#14586)
pull/14591/head
Sebastián Ramírez
6 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
7 additions and
2 deletions
-
.github/workflows/test.yml
|
|
|
@ -54,10 +54,14 @@ jobs: |
|
|
|
- os: windows-latest |
|
|
|
python-version: "3.12" |
|
|
|
coverage: coverage |
|
|
|
# Ubuntu with 3.13 needs coverage for CodSpeed benchmarks |
|
|
|
- os: ubuntu-latest |
|
|
|
python-version: "3.13" |
|
|
|
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 |
|
|
|
python-version: "3.14" |
|
|
|
coverage: coverage |
|
|
|
@ -85,12 +89,13 @@ jobs: |
|
|
|
run: uv pip install -r requirements-tests.txt |
|
|
|
- run: mkdir coverage |
|
|
|
- name: Test |
|
|
|
if: matrix.codspeed != 'codspeed' |
|
|
|
run: bash scripts/test.sh |
|
|
|
env: |
|
|
|
COVERAGE_FILE: coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }} |
|
|
|
CONTEXT: ${{ runner.os }}-py${{ matrix.python-version }} |
|
|
|
- name: CodSpeed benchmarks |
|
|
|
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.13' |
|
|
|
if: matrix.codspeed == 'codspeed' |
|
|
|
uses: CodSpeedHQ/action@v4 |
|
|
|
env: |
|
|
|
COVERAGE_FILE: coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }} |
|
|
|
|