-
Notifications
You must be signed in to change notification settings - Fork 10
45 lines (38 loc) · 1.02 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
name: Test QPC
on:
push:
branches: [main]
pull_request:
branches: [main, "release/*"]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"] # Expand like ["3.12", "3.13"] to test more versions.
type:
[
config-verify,
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: ${{ matrix.python-version }}
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]