-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (43 loc) · 1.26 KB
/
test.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
43
44
45
46
47
48
49
50
51
52
name: Unit tests
on: [pull_request]
jobs:
test:
name: Unit tests
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install dependencies
run: poetry install
- name: Test
shell: bash
run: poetry run j --log-level info ci
env:
GH_TOKEN: ${{ github.token }}
PR_NUMBER: ${{ github.event.pull_request.number }}
- name: Pytest coverage comment
if: github.actor != 'dependabot[bot]'
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-coverage-path: tests/artifacts/coverage.txt
junitxml-path: tests/artifacts/pytest.xml
- name: Post Test Report
if: github.actor != 'dependabot[bot]'
uses: dorny/test-reporter@v1
with:
name: pytest
path: tests/artifacts/pytest.xml
reporter: java-junit
fail-on-error: false