-
Notifications
You must be signed in to change notification settings - Fork 6
59 lines (53 loc) · 1.56 KB
/
review-checks.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
name: Review-checks
on: [pull_request]
jobs:
unittests:
strategy:
fail-fast: false
matrix:
container: ["fedora:31", "fedora:32", "fedora:rawhide"]
runs-on: ubuntu-latest
container:
image: ${{ matrix.container }}
steps:
- uses: actions/checkout@v1
- name: Install deps
run: |
dnf install -y 'dnf-command(builddep)' git-daemon python3-flask python3-requests python3-pytest python3-six procps-ng
- name: Install restraint deps
run: |
dnf builddep --spec specfiles/restraint-upstream.spec -y
- name: Run tests
run: |
set -o pipefail
make check | tee unittests.out
mv unittests.out /__w/unittests.out
- uses: actions/upload-artifact@v1
with:
name: unittests.out
path: /home/runner/work/unittests.out
valgrind:
strategy:
fail-fast: false
matrix:
container: ["fedora:31", "fedora:32", "fedora:rawhide"]
runs-on: ubuntu-latest
container:
image: ${{ matrix.container }}
steps:
- uses: actions/checkout@v1
- name: Install deps
run: |
dnf install -y 'dnf-command(builddep)' valgrind git-daemon procps-ng
- name: Install restraint deps
run: |
dnf builddep --spec specfiles/restraint-upstream.spec -y
- name: Run valgrind
run: |
set -o pipefail
make valgrind 2>&1 | tee valgrind.out
mv valgrind.out /__w/valgrind.out
- uses: actions/upload-artifact@v1
with:
name: valgrind.out
path: /home/runner/work/valgrind.out