Skip to content

Commit 55e4f26

Browse files
authored
Merge pull request #11 from patchmemory/chore/ci-remove-invalid-pytest-flag
Chore/ci remove invalid pytest flag Took several iterations to ensure Playwright was installing and running correctly
2 parents 1d34d46 + 9ebac3d commit 55e4f26

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/tests.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,22 @@ jobs:
1717
- uses: actions/setup-python@v5
1818
with:
1919
python-version: ${{ matrix.python-version }}
20-
- name: Install Python deps
20+
- name: Upgrade pip and install Python deps
2121
run: |
2222
python -m pip install --upgrade pip
2323
pip install -e .[dev]
24-
- name: Install Playwright browsers
25-
if: matrix.tier == 'e2e'
26-
uses: microsoft/playwright-github-action@v1
2724
- name: Prepare repo-local temp directories
2825
run: |
2926
mkdir -p dev/test-runs/{tmp,pytest-tmp,artifacts,downloads,pw-browsers}
27+
- name: Install Playwright browsers (python CLI, repo-local)
28+
if: matrix.tier == 'e2e'
29+
env:
30+
PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/dev/test-runs/pw-browsers
31+
TMPDIR: ${{ github.workspace }}/dev/test-runs/tmp
32+
TMP: ${{ github.workspace }}/dev/test-runs/tmp
33+
TEMP: ${{ github.workspace }}/dev/test-runs/tmp
34+
run: |
35+
python -m playwright install chromium
3036
- name: Run tests by tier
3137
env:
3238
SCIDK_E2E: ${{ matrix.tier == 'e2e' && '1' || '0' }}
@@ -42,7 +48,7 @@ jobs:
4248
pytest -m integration -q
4349
;;
4450
e2e)
45-
pytest -m e2e tests/e2e -v --maxfail=1 --suppress-no-test-exit-code
51+
pytest -m e2e tests/e2e -v --maxfail=1
4652
;;
4753
esac
4854
- name: Upload Playwright report (on failure)

0 commit comments

Comments
 (0)