-
Notifications
You must be signed in to change notification settings - Fork 37
44 lines (32 loc) · 1.08 KB
/
push-test.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
37
38
39
40
41
42
43
44
name: Push Triggered Testrun
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-html
- name: Install pytrinamic from the checked out repository
run: pip install .
- name: Run the tests inside the project's root `tests` directory
working-directory: tests
run: pytest test_project_sanity.py -v --html=pytest_report.html --self-contained-html
- name: Run the tests inside the `examples` directory
working-directory: examples
run: pytest -v --html=pytest_examples_report.html --self-contained-html
- name: Upload the test reports even if tests fail
if: always()
uses: actions/upload-artifact@v4
with:
name: test-report
path: |
tests/pytest_report.html
examples/pytest_examples_report.html