-
Notifications
You must be signed in to change notification settings - Fork 77
36 lines (33 loc) · 907 Bytes
/
testing.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: testing
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: abatilo/actions-poetry@v2
with:
poetry-version: "1.5.1"
- name: Install dependencies
run: |
poetry install
python -m pip install tox tox-gh-actions pytest-playwright pytest-rerunfailures
- name: Install playwright dependencies
run: |
playwright install --with-deps
- name: Test with tox
run: tox
- uses: actions/upload-artifact@v3
if: failure()
with:
name: screenshots
path: screenshot*.png