forked from keylime/keylime
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (47 loc) · 1.46 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
name: test
on:
pull_request:
paths:
- 'keylime/**'
- 'test/**'
- 'test-data/**'
workflow_dispatch:
jobs:
style-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v3
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
tpm-tests:
runs-on: ubuntu-latest
container:
image: quay.io/keylime/keylime-ci:latest
options: --user root --mount type=tmpfs,destination=/var/lib/keylime/,tmpfs-mode=1770
env:
KEYLIME_TEST: True
steps:
- name: Checkout
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v2
- name: Run tests
run: .ci/test_wrapper.sh
lint:
runs-on: ubuntu-latest
container:
image: quay.io/keylime/keylime-ci:latest
options: --user root --mount type=tmpfs,destination=/var/lib/keylime/,tmpfs-mode=1770
env:
KEYLIME_TEST: True
steps:
- name: Checkout
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v2
- name: Install build dependencies
run: sudo dnf -y install swig
- name: Install Python dependencies
run: sudo dnf -y install python3.10 tox python3-pip
- name: Run lints
run: tox -vv -e 'pylint,pylint310'
- name: Run mypy
run: tox -vv -e 'mypy'
- name: Run pyright
run: tox -vv -e 'pyright'