-
Notifications
You must be signed in to change notification settings - Fork 5
45 lines (35 loc) · 1.17 KB
/
dash.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
name: dash
on:
pull_request:
push:
branches:
- main
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
check-dash:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
# taken from here: https://github.com/eclipse/dash-licenses#example-python
- name: Create Dash Dependency Report
run: |
python3 -m venv ./.venv/kuksa-client
source ./.venv/kuksa-client/bin/activate
pip install --upgrade pip
pip install -r kuksa-client/requirements.txt
deactivate
python3 -m venv ./.venv/pipdeptree
source ./.venv/pipdeptree/bin/activate
pip install pipdeptree
pipdeptree -a -f --python ./.venv/kuksa-client/bin/python \
| sed -E -e 's|([^= ]+)==([^= ]+)|pypi/pypi/-/\1/\2|' -e 's| ||g' \
| sort | uniq \
> dependencies.txt
- name: Dash license check
uses: eclipse-kuksa/kuksa-actions/check-dash@4
with:
dashinput: ${{github.workspace}}/dependencies.txt
dashtoken: ${{ secrets.ECLIPSE_GITLAB_API_TOKEN}}