-
Notifications
You must be signed in to change notification settings - Fork 15
42 lines (40 loc) · 1.4 KB
/
tests.yaml
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
37
38
39
40
41
42
name: tests
on:
push:
branches:
- main
pull_request:
types: ["opened", "synchronize", "reopened"]
create:
jobs:
test:
name: pf-${{ matrix.pf-version }} (🐍 ${{ matrix.python-version }}, ${{ matrix.browser }})
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
browser: [chrome, firefox]
python-version: ["3.12", "3.13"]
pf-version: ["v5", "v6"]
steps:
- name: Pull selenium-standalone
run: podman pull selenium/standalone-${{ matrix.browser }}:latest
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -U pip wheel
pip install .[dev]
- name: Test with pytest
run: |
pytest -sqvvv -n 3 --browser-name=${{ matrix.browser }} --pf-version=${{ matrix.pf-version }} testing/charts testing/components/forms testing/components/date_and_time testing/components/menus
# pytest -v -n 5 --browser-name=${{ matrix.browser }} --cov=./ --cov-report=xml
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v4
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# file: coverage.xml
# flags: unittests
# name: ${{ github.run_id }}-py-${{ matrix.python-version }}-${{ matrix.browser }}