-
Notifications
You must be signed in to change notification settings - Fork 10
66 lines (56 loc) · 1.48 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Test QPC
on:
push:
branches: [main]
pull_request:
branches: [main, "release/*"]
jobs:
check-dependencies:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Install poetry
run: pipx install poetry
- name: Set up Python
uses: actions/[email protected]
with:
python-version-file: pyproject.toml
cache: "poetry"
cache-dependency-path: "poetry.lock"
- name: Check dependencies
run: |
make lock-main-requirements
make check-requirements
test:
runs-on: ubuntu-latest
strategy:
matrix:
type:
[
manpage-test,
lint,
test-coverage,
]
steps:
- name: Check out repository code
uses: actions/checkout@v2
with:
fetch-depth: 0 # fetches all commits/tags
- name: Install poetry
run: pipx install poetry
- name: Set up Python
uses: actions/[email protected]
with:
python-version-file: pyproject.toml
cache: "poetry"
cache-dependency-path: "poetry.lock"
- name: Install dependencies
run: poetry install --with build
- name: Test phase
run: make ${{ matrix.type }}
- name: Upload coverage to Codecov
uses: codecov/[email protected]