Skip to content

Commit

Permalink
Fix CI with new Ubuntu LTS (#198)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Ckk3 authored Oct 12, 2024
1 parent 550c23c commit 3397507
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ jobs:
sessions: ${{ steps.set-matrix.outputs.sessions }}
steps:
- uses: actions/checkout@v4
- run: pip install poetry nox nox-poetry
- run: python3 -m venv .venv
- id: set-matrix
shell: bash
run: |
. .venv/bin/activate
pip install poetry nox nox-poetry
echo sessions=$(
nox --json -t tests -l |
jq 'map(
Expand Down Expand Up @@ -76,7 +78,7 @@ jobs:

benchmarks:
name: 📈 Benchmarks
runs-on: ubuntu-latest
runs-on: ubuntu-22.04 # Using this version because CodSpeed doesn't support Ubuntu 24.04 LTS yet.
strategy:
fail-fast: false

Expand All @@ -95,7 +97,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 3397507

Please sign in to comment.