Skip to content

Commit

Permalink
Fix CI with new Ubuntu LTS (#3667)
Browse files Browse the repository at this point in the history
* fix ci

* fix precommit

* change pip to uv

* fix uv

* fix pre-commit
  • Loading branch information
Ckk3 authored Oct 12, 2024
1 parent d504428 commit daec236
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,14 @@ jobs:
sessions: ${{ steps.set-matrix.outputs.sessions }}
steps:
- uses: actions/checkout@v4
- run: pip install poetry nox nox-poetry
- name: Install uv
uses: astral-sh/setup-uv@v3
- run: uv venv
- run: uv pip install poetry nox nox-poetry
- id: set-matrix
shell: bash
run: |
. .venv/bin/activate
echo sessions=$(
nox --json -t tests -l |
jq 'map(
Expand Down Expand Up @@ -82,7 +86,9 @@ jobs:

benchmarks:
name: 📈 Benchmarks
runs-on: ubuntu-latest

# Using this version because CodSpeed doesn't support Ubuntu 24.04 LTS yet
runs-on: ubuntu-22.04

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

- name: Run benchmarks
uses: CodSpeedHQ/action@v2
uses: CodSpeedHQ/action@v3
with:
token: ${{ secrets.CODSPEED_TOKEN }}
run: poetry run pytest tests/benchmarks --codspeed
Expand Down

0 comments on commit daec236

Please sign in to comment.