From 49aa32d58fb66500501b3e191613ec788a9b72eb Mon Sep 17 00:00:00 2001 From: Arthur Pastel Date: Wed, 30 Oct 2024 12:42:01 +0100 Subject: [PATCH] fix: install deps in a separate step --- .github/workflows/codspeed.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codspeed.yml b/.github/workflows/codspeed.yml index 04c836e..ee9bd0b 100644 --- a/.github/workflows/codspeed.yml +++ b/.github/workflows/codspeed.yml @@ -10,15 +10,21 @@ jobs: include: - { python-version: "3.13t", gil: "1" } - { python-version: "3.13t", gil: "0" } + env: + UV_PYTHON: ${{ matrix.python-version }} steps: - uses: actions/checkout@v4 - name: Install uv uses: astral-sh/setup-uv@v3 - name: Set up Python ${{ matrix.python-version }} - run: uv python install ${{ matrix.python-version }} + run: uv python install + + - name: Install dependencies + run: uv sync --all-extras + - uses: CodSpeedHQ/action@v3 env: PYTHON_GIL: ${{ matrix.gil || '' }} with: runner-version: 3.1.0-beta.2 - run: uv run -p ${{ matrix.python-version }} pytest --codspeed --codspeed-max-time 10 -vs tests.py + run: uv run pytest --codspeed --codspeed-max-time 10 -vs tests.py