Skip to content

Commit 3397507

Browse files
authored
Fix CI with new Ubuntu LTS (#198)
* up´date codspeed to v3 * change ubuntu version to 2204 * add a virtual enviroment to follow pep requirements on new ubuntu lts * update venv on test matrix
1 parent 550c23c commit 3397507

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/test.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ jobs:
2525
sessions: ${{ steps.set-matrix.outputs.sessions }}
2626
steps:
2727
- uses: actions/checkout@v4
28-
- run: pip install poetry nox nox-poetry
28+
- run: python3 -m venv .venv
2929
- id: set-matrix
3030
shell: bash
3131
run: |
32+
. .venv/bin/activate
33+
pip install poetry nox nox-poetry
3234
echo sessions=$(
3335
nox --json -t tests -l |
3436
jq 'map(
@@ -76,7 +78,7 @@ jobs:
7678

7779
benchmarks:
7880
name: 📈 Benchmarks
79-
runs-on: ubuntu-latest
81+
runs-on: ubuntu-22.04 # Using this version because CodSpeed doesn't support Ubuntu 24.04 LTS yet.
8082
strategy:
8183
fail-fast: false
8284

@@ -95,7 +97,7 @@ jobs:
9597
if: steps.setup-python.outputs.cache-hit != 'true'
9698

9799
- name: Run benchmarks
98-
uses: CodSpeedHQ/action@v2
100+
uses: CodSpeedHQ/action@v3
99101
with:
100102
token: ${{ secrets.CODSPEED_TOKEN }}
101103
run: poetry run pytest tests/benchmarks --codspeed

0 commit comments

Comments
 (0)