From 5815372f94ce93f0ea9e6a666f986670fe7e88aa Mon Sep 17 00:00:00 2001 From: Luis Gustavo Date: Thu, 10 Oct 2024 21:29:54 -0300 Subject: [PATCH 1/5] fix ci --- .github/workflows/test.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 570700cf10..be556bf25d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,10 +24,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( @@ -82,7 +84,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. steps: - uses: actions/checkout@v4 @@ -99,7 +101,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 From b834cdfe9308d47564fd5033ba8002e9551cc183 Mon Sep 17 00:00:00 2001 From: Luis Gustavo Date: Thu, 10 Oct 2024 21:38:53 -0300 Subject: [PATCH 2/5] fix precommit --- .github/workflows/test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index be556bf25d..f8d64e7cdc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -84,7 +84,8 @@ jobs: benchmarks: name: 📈 Benchmarks - runs-on: ubuntu-22.04 # Using this version because CodSpeed doesn't support Ubuntu 24.04 LTS yet. + # Using this version because CodSpeed doesn't support Ubuntu 24.04 LTS yet. + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 From ea92ef66c1e424fda588cd8b63fa58948e056ee0 Mon Sep 17 00:00:00 2001 From: Ckk3 Date: Sat, 12 Oct 2024 03:29:04 +0000 Subject: [PATCH 3/5] change pip to uv --- .github/workflows/test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f8d64e7cdc..4e40021d07 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,12 +24,14 @@ jobs: sessions: ${{ steps.set-matrix.outputs.sessions }} steps: - uses: actions/checkout@v4 + - name: Install uv + uses: astral-sh/setup-uv@v3 - run: python3 -m venv .venv - id: set-matrix shell: bash run: | . .venv/bin/activate - pip install poetry nox nox-poetry + uv install poetry nox nox-poetry echo sessions=$( nox --json -t tests -l | jq 'map( From f821d0d45c80637cfc29362c37dda3b5e267ca1b Mon Sep 17 00:00:00 2001 From: Ckk3 Date: Sat, 12 Oct 2024 03:34:12 +0000 Subject: [PATCH 4/5] fix uv --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4e40021d07..22673f3469 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,12 +26,12 @@ jobs: - uses: actions/checkout@v4 - name: Install uv uses: astral-sh/setup-uv@v3 - - run: python3 -m venv .venv + - run: uv venv + - run: uv pip install poetry nox nox-poetry - id: set-matrix shell: bash run: | - . .venv/bin/activate - uv install poetry nox nox-poetry + . .venv/bin/activate echo sessions=$( nox --json -t tests -l | jq 'map( From 553778491911d3541f8be9217f08e00c88594798 Mon Sep 17 00:00:00 2001 From: Ckk3 Date: Sat, 12 Oct 2024 03:49:47 +0000 Subject: [PATCH 5/5] fix pre-commit --- .github/workflows/test.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 22673f3469..e45bbec64a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -86,8 +86,9 @@ jobs: benchmarks: name: 📈 Benchmarks - # Using this version because CodSpeed doesn't support Ubuntu 24.04 LTS yet. - runs-on: ubuntu-22.04 + + # Using this version because CodSpeed doesn't support Ubuntu 24.04 LTS yet + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4