Skip to content

Commit 6b59f44

Browse files
committed
uv
1 parent d7979b8 commit 6b59f44

1 file changed

Lines changed: 9 additions & 15 deletions

File tree

.github/workflows/nightly.yml

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -43,24 +43,18 @@ jobs:
4343
uses: actions/setup-python@v5
4444
with:
4545
python-version: '3.13'
46-
- name: Install Poetry
47-
uses: snok/install-poetry@v1
46+
- name: Set up uv
47+
uses: astral-sh/setup-uv@v5
4848
with:
49-
virtualenvs-create: true
50-
virtualenvs-in-project: true
51-
installer-parallel: true
52-
- name: Cache Dependencies
53-
uses: actions/cache@v4
54-
id: poetry-cache
55-
with:
56-
path: .venv
57-
key: poetry-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
58-
- name: Install Dependencies
59-
if: steps.poetry-cache.outputs.cache-hit != 'true'
60-
run: poetry install --no-interaction --no-root
49+
enable-cache: true
50+
- name: Create venv & install dependencies
51+
run: |
52+
uv venv
53+
uv pip sync uv.lock
6154
- name: Run Tests
6255
run: |
63-
poetry run xvfb-run pytest ${{ github.event.inputs.pytest_command || '-m "not devRun"' }} \
56+
source .venv/bin/activate
57+
xvfb-run pytest ${{ github.event.inputs.pytest_command || '-m "not devRun"' }} \
6458
--base-url ${{ vars.BASE_URL }} \
6559
--splits ${{ github.event.inputs.parallelism || 2 }} \
6660
--group ${{ matrix.group }}

0 commit comments

Comments
 (0)