-
Notifications
You must be signed in to change notification settings - Fork 9
84 lines (66 loc) · 2.21 KB
/
ci.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
84
on:
- push
- pull_request
name: Continuous integration
jobs:
static_analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install tools
run: |
pip install black bandit
- name: Run black check
run: |
black --check .
- name: Run bandit check
run: |
bandit -ll -r .
test_ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install apt deps
run: |
sudo apt-get install -y \
python3 librpm-dev python3-rpm python3-pip python3-setuptools python3-dateutil \
python3-requests python3-gssapi python3-pyxattr rpm valgrind ima-evm-utils
- name: Install pip deps
run: |
pip3 install koji
- name: Build insertlib
run: |
python3 setup.py build_ext -i
- name: Run test
run: |
# We allow insertlib to be found in the valgrind output because the RPM version on Ubuntu is doing
# weird things.
ONLY_ALTERNATIVE_EVMCTL_CHECK=true PRINT_VALGRIND_LOG=1 VALGRIND_ALLOW_INSERTLIB=true python3 test.py | true
tests_fedora:
runs-on: ubuntu-latest
container: fedora:latest
steps:
- uses: actions/checkout@v2
- name: Install deps
run: |
dnf install -y python3-koji python3-pyxattr python3-rpm make gcc rpm-sign cpio python3-setuptools rpm-devel python3-devel python3-cryptography valgrind
- name: Build insertlib
run: |
python3 setup.py build_ext -i
- name: Run tests
run: PRINT_VALGRIND_LOG=1 python3 test.py
tests_centos_8:
runs-on: ubuntu-latest
container: quay.io/centos/centos:stream8
steps:
- uses: actions/checkout@v2
- name: Install deps
run: |
dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
dnf install -y python3-koji python3-rpm make gcc rpm-sign cpio python3-setuptools rpm-devel python3-devel python3-cryptography valgrind
pip3 install pyxattr
- name: Build insertlib
run: |
python3 setup.py build_ext -i
- name: Run tests
run: PRINT_VALGRIND_LOG=1 python3 test.py