Skip to content

Commit 7816118

Browse files
committed
uv
1 parent e36efc3 commit 7816118

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

.github/workflows/devRun.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ jobs:
2929
PLAYWRIGHT_VERSION=$(grep -E '^playwright = "[^"]*"' pyproject.toml | sed -E 's/playwright = "([^"]*)".*$/\1/')
3030
npx playwright@$PLAYWRIGHT_VERSION install --with-deps
3131
- name: Test with pytest
32-
run: |
33-
source .venv/bin/activate
34-
xvfb-run pytest -m devRun --base-url ${{ vars.BASE_URL }}
32+
run: uv venv exec bash -c "xvfb-run pytest -m devRun --base-url ${{ vars.BASE_URL }}"
3533
- name: Auto-assign reviewers
3634
uses: kentaro-m/auto-assign-action@v2.0.0
3735
if: success()

.github/workflows/nightly.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ jobs:
5454
npx playwright@$PLAYWRIGHT_VERSION install --with-deps
5555
- name: Run Tests
5656
run: |
57-
source .venv/bin/activate
58-
xvfb-run pytest ${{ github.event.inputs.pytest_command || '-m "not devRun"' }} \
59-
--base-url ${{ vars.BASE_URL }} \
60-
--splits ${{ github.event.inputs.parallelism || 2 }} \
61-
--group ${{ matrix.group }}
57+
uv venv exec bash -c "
58+
xvfb-run pytest ${{ github.event.inputs.pytest_command || '-m \"not devRun\"' }} \
59+
--base-url ${{ vars.BASE_URL }} \
60+
--splits ${{ github.event.inputs.parallelism || 2 }} \
61+
--group ${{ matrix.group }}"
6262
- name: Upload test results and artifacts
6363
if: always()
6464
uses: actions/upload-artifact@v4.6.2

0 commit comments

Comments
 (0)