-
Notifications
You must be signed in to change notification settings - Fork 5
64 lines (55 loc) · 1.69 KB
/
tests.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
name: Build tests
on: [push, pull_request]
env:
# Minimum versions to build refpolicy.
PYTHON_VERSION: "3.10"
SELINUX_USERSPACE_VERSION: "3.2"
# branch for sechecker
SECHECKER_VERSION: "4.5"
# branch for selint
SELINT_VERSION: "v1.5.0"
jobs:
lint_branch_policy:
uses: ./.github/workflows/lint-policy.yml
with:
python-version: "3.10"
selint-version: "v1.5.0"
build_userspace:
uses: ./.github/workflows/build-userspace.yml
# depend on lint so expensive operations don't run if lint fails
with:
version: "3.2"
python-version: "3.10"
build_setools:
uses: ./.github/workflows/build-setools.yml
needs: build_userspace
with:
version: "4.5"
python-version: "3.10"
build_branch_policy:
uses: ./.github/workflows/build-policy.yml
needs: [lint_branch_policy, build_setools, build_userspace]
with:
# Minimum versions to build refpolicy.
python-version: "3.10"
validate_branch_policy:
uses: ./.github/workflows/validate-policy.yml
needs: [build_branch_policy, build_setools, build_userspace]
with:
python-version: "3.10"
build_PRtarget_policy:
uses: ./.github/workflows/build-policy.yml
needs: [lint_branch_policy, build_setools, build_userspace]
if: ${{ github.event_name == 'pull_request' }}
with:
version: ${{ github.base_ref }}
artifact-name: "PRbase"
python-version: "3.10"
diff_policy:
uses: ./.github/workflows/diff-policy.yml
needs: [build_branch_policy, build_PRtarget_policy, build_setools, build_userspace]
if: ${{ github.event_name == 'pull_request' }}
with:
left: "PRbase"
right: "refpolicy"
python-version: "3.10"