Merge pull request #510 from DagsHub/tests/fix-broken-dep #149
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check licenses | |
on: | |
push: | |
branches: [ "main", "master" ] | |
paths: | |
- setup.py | |
- requirements*.txt | |
pull_request: | |
branches: [ "main", "master" ] | |
paths: | |
- setup.py | |
- requirements*.txt | |
jobs: | |
check-licenses: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dagshub/python-license-checker-action@v1 | |
- run: | | |
commit="$GITHUB_SHA" | |
base_link="github.com/$GITHUB_REPOSITORY" | |
date=`date "+%B %e %Y"` | |
awk -F',' -v "commit=$commit" -v "base_link=$base_link" -v "date=$date" '{OFS=","; print base_link,commit,date,$1_$2,$3,$4}' licenses.csv > python-licenses.csv | |
- name: Upload python license report | |
uses: actions/upload-artifact@v3 | |
with: | |
name: python-licenses.csv | |
path: python-licenses.csv | |
if-no-files-found: error | |