-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (34 loc) · 874 Bytes
/
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
name: Run all tests
on:
push:
branches:
- develop
- main
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.8", "3.9", "3.10" ]
name: Run tests for Python ${{ matrix.python-version }}
permissions:
checks: write
pull-requests: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- run: make test
- uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
junit_files: src/reports/**/junit*.xml
- name: Archive test and coverage reports
uses: actions/upload-artifact@v3
with:
name: test-and-coverage-report
path: src/reports