Skip to content

Commit

Permalink
Merge pull request #9 from boschglobal/feature-8
Browse files Browse the repository at this point in the history
Add GitHub Action for Dash License Check
  • Loading branch information
SebastianSchildt authored Dec 13, 2023
2 parents 4b5ae87 + c832e69 commit a1c5ecc
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/dash.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: dash

on:
pull_request:
push:
branches:
- main

jobs:
check-dash:
runs-on: ubuntu-latest
steps:

- name: Checkout code
uses: actions/checkout@v3

# 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@2
with:
dashinput: ${{github.workspace}}/dependencies.txt

0 comments on commit a1c5ecc

Please sign in to comment.