-
Notifications
You must be signed in to change notification settings - Fork 21
83 lines (66 loc) · 1.82 KB
/
build.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: Build journalpump
on:
push:
branches:
- master
tags:
- '**'
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
# only use oldest and newest version for the lint step
python-version: ["3.9", "3.11"]
steps:
- id: checkout-code
uses: actions/checkout@v2
- id: system-dependencies
run: |
sudo apt-get update
sudo apt-get install -y libsystemd-dev libsnappy-dev
- id: prepare-python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- id: python-dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements.dev.txt
- id: pre-commit
run: pre-commit run --all
test:
runs-on: ubuntu-latest
needs: lint
strategy:
max-parallel: 4
matrix:
python-version: ["3.9", "3.11"]
steps:
- id: checkout-code
uses: actions/checkout@v2
- id: system-dependencies
run: |
sudo apt-get update
sudo apt-get install -y libsystemd-dev libsnappy-dev
- id: prepare-python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- id: python-dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install --upgrade -r requirements.dev.txt
pip install -e .
- id: unittest
run: make coverage
- id: systest
run: make systest
- id: upload-codecov
# Third-party action pinned to v2.1.0
uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b
with:
verbose: true