Skip to content

Commit daec236

Browse files
authored
Fix CI with new Ubuntu LTS (#3667)
* fix ci * fix precommit * change pip to uv * fix uv * fix pre-commit
1 parent d504428 commit daec236

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,14 @@ jobs:
2424
sessions: ${{ steps.set-matrix.outputs.sessions }}
2525
steps:
2626
- uses: actions/checkout@v4
27-
- run: pip install poetry nox nox-poetry
27+
- name: Install uv
28+
uses: astral-sh/setup-uv@v3
29+
- run: uv venv
30+
- run: uv pip install poetry nox nox-poetry
2831
- id: set-matrix
2932
shell: bash
3033
run: |
34+
. .venv/bin/activate
3135
echo sessions=$(
3236
nox --json -t tests -l |
3337
jq 'map(
@@ -82,7 +86,9 @@ jobs:
8286

8387
benchmarks:
8488
name: 📈 Benchmarks
85-
runs-on: ubuntu-latest
89+
90+
# Using this version because CodSpeed doesn't support Ubuntu 24.04 LTS yet
91+
runs-on: ubuntu-22.04
8692

8793
steps:
8894
- uses: actions/checkout@v4
@@ -99,7 +105,7 @@ jobs:
99105
if: steps.setup-python.outputs.cache-hit != 'true'
100106

101107
- name: Run benchmarks
102-
uses: CodSpeedHQ/action@v2
108+
uses: CodSpeedHQ/action@v3
103109
with:
104110
token: ${{ secrets.CODSPEED_TOKEN }}
105111
run: poetry run pytest tests/benchmarks --codspeed

0 commit comments

Comments
 (0)