Skip to content

Commit ec62149

Browse files
committed
Moving the license checking to a different job, as it cannot be run on windows
1 parent cfc947f commit ec62149

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/pre-commit_wsl.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,24 @@ jobs:
125125
source .env/bin/activate
126126
127127
pytest --cov=execution_process_metrics_collector
128+
129+
check_licences:
130+
runs-on: ubuntu-latest
131+
strategy:
132+
matrix:
133+
python-version: [ "3.12" ]
134+
# python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
135+
name: Validate licences of gathered dependencies (WSL python ${{ matrix.python-version }})
136+
needs:
137+
- pre-commit
138+
steps:
139+
- name: Get analysis timestamp
140+
id: timestamp
141+
run: echo "timestamp=$(date -Is)" >> "$GITHUB_OUTPUT"
142+
- uses: actions/download-artifact@v5
143+
id: download
144+
with:
145+
name: wsl-pre-commit-${{matrix.python-version}}
128146
- name: Get transitive dependencies licences
129147
id: license_check_print_report
130148
# uses: pilosus/action-pip-license-checker@v1.0.0
@@ -154,7 +172,7 @@ jobs:
154172
runs-on: ubuntu-latest
155173
name: Pull request with the newly generated contents
156174
needs:
157-
- pre-commit
175+
- check_licences
158176
steps:
159177
- name: Get analysis timestamp
160178
id: timestamp

0 commit comments

Comments
 (0)