Skip to content

Commit de78a77

Browse files
committed
Add separate test that does not use conda
1 parent 2b30c5b commit de78a77

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: Run playwright/streamlit tests
5+
6+
on:
7+
pull_request:
8+
push:
9+
branches:
10+
- main
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
python-version: ["3.9", "3.13"]
18+
19+
steps:
20+
- uses: actions/checkout@v3
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v4
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
- uses: actions/setup-node@v3
26+
with:
27+
node-version: 20
28+
- name: Install python dependencies
29+
run: |
30+
python -m pip install --upgrade pip
31+
pip install flake8 pytest pytest-playwright
32+
pip install -e . --force-reinstall
33+
- uses: pre-commit/[email protected]
34+
- name: Install playwright dependencies
35+
run: |
36+
playwright install --with-deps
37+
- name: Install annotate-failures-plugin
38+
run: pip install pytest-github-actions-annotate-failures
39+
40+
- name: Test with pytest and retry flaky tests up to 3 times
41+
run: |
42+
pytest --browser chromium -s --reruns 3 --junit-xml=test-results.xml
43+
44+
- name: Surface failing tests
45+
if: always()
46+
uses: pmeier/pytest-results-action@main
47+
with:
48+
path: test-results.xml
49+
fail-on-empty: false
50+
51+
- uses: actions/upload-artifact@v3
52+
if: failure()
53+
with:
54+
name: screenshots
55+
path: screenshot*.png

0 commit comments

Comments
 (0)