-
Notifications
You must be signed in to change notification settings - Fork 45
110 lines (89 loc) · 2.51 KB
/
tests.yaml
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
name: Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
tss-version: ['master', '2.4.0', '3.0.0', '3.0.3', '3.2.0', '4.0.0']
with-fapi: [true]
include:
- python-version: '3.9'
tss-version: '3.1.0'
with-fapi: false
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
env:
TPM2_TSS_VERSION: ${{ matrix.tss-version }}
TPM2_TSS_FAPI: ${{ matrix.with-fapi }}
TPM2_TOOLS_VERSION: ${{ matrix.tools-version }}
run: ./.ci/install-deps.sh
- name: Check
env:
TEST: 1
run: ./.ci/run.sh
coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
env:
TPM2_TSS_VERSION: 4.1.3
run: ./.ci/install-deps.sh
- name: Check
env:
TEST: 1
ENABLE_COVERAGE: true
run: ./.ci/run.sh
- name: Upload coverage report
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: /tmp/coverage.xml
whitespace-check:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Check
env:
WHITESPACE: 1
run: ./.ci/run.sh
style-check:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install Dependencies
run: |
python3 -m pip install --user --break-system-packages --upgrade pip
python3 -m pip install --user --break-system-packages --upgrade black~=24.0
- name: Check
env:
STYLE: 1
run: ./.ci/run.sh
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install Dependencies
run: |
python3 -m pip install --user --break-system-packages --upgrade pip
python3 -m pip install --user --break-system-packages --upgrade ruff
- name: Check
env:
LINT: 1
run: ./.ci/run.sh