File tree Expand file tree Collapse file tree 2 files changed +30
-2
lines changed Expand file tree Collapse file tree 2 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 13
13
- uses : actions/checkout@v3
14
14
- uses : actions/setup-python@v4
15
15
with :
16
- python-version : " 3.7 "
16
+ python-version : " 3.x "
17
17
- name : lint
18
18
run : make lint
Original file line number Diff line number Diff line change 7
7
pull_request :
8
8
workflow_dispatch :
9
9
10
+ concurrency :
11
+ group : ${{ github.workflow }}-${{ github.ref }}
12
+ cancel-in-progress : true
13
+
10
14
jobs :
11
15
selftest-requirements :
12
- runs-on : ubuntu-latest
16
+ strategy :
17
+ matrix :
18
+ os : [ubuntu-latest, windows-latest]
19
+ runs-on : ${{ matrix.os }}
13
20
steps :
14
21
- uses : actions/checkout@v3
15
22
- uses : ./
21
28
# explicitly uses a vulnerable requirements file.
22
29
internal-be-careful-allow-failure : true
23
30
- name : assert expected output
31
+ shell : bash
24
32
env :
25
33
PIP_AUDIT_OUTPUT : " ${{ steps.pip-audit.outputs.internal-be-careful-output }}"
26
34
run : |
88
96
PIP_AUDIT_OUTPUT : " ${{ steps.pip-audit.outputs.internal-be-careful-output }}"
89
97
run : |
90
98
grep -E 'pyyaml\s+\|\s+5.1' <<< $(base64 -d <<< "${PIP_AUDIT_OUTPUT}")
99
+
91
100
selftest-pipaudit-fail :
92
101
runs-on : ubuntu-latest
93
102
steps :
@@ -106,3 +115,22 @@ jobs:
106
115
PIP_AUDIT_OUTPUT : " ${{ steps.pip-audit.outputs.internal-be-careful-output }}"
107
116
run : |
108
117
grep 'pip-audit did not return any output' <<< $(base64 -d <<< "${PIP_AUDIT_OUTPUT}")
118
+
119
+ all-selftests-pass :
120
+ if : always()
121
+
122
+ needs :
123
+ - selftest-requirements
124
+ - selftest-environment
125
+ - selftest-virtualenv
126
+ - selftest-pyproject
127
+ - selftest-pipaudit-fail
128
+
129
+ runs-on : ubuntu-latest
130
+
131
+ steps :
132
+ - name : check test jobs
133
+ if : (github.event_name != 'pull_request') || !github.event.pull_request.head.repo.fork
134
+ uses : re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
135
+ with :
136
+ jobs : ${{ toJSON(needs) }}
You can’t perform that action at this time.
0 commit comments