Skip to content

Check licenses of dependencies #707

Check licenses of dependencies

Check licenses of dependencies #707

Workflow file for this run

name: Check licenses of dependencies
on:
pull_request:
paths:
- .licenses/**
- packages/*/pyproject.toml
push:
branches: [main]
paths:
- packages/*/pyproject.toml
schedule:
- cron: '0 0 * * MON-FRI'
workflow_dispatch:
branches: [main]
jobs:
check-licenses:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip'
cache-dependency-path: 'packages/*/pyproject.toml'
- run: python -m venv venv
- run: |
. venv/bin/activate
pip install -e packages/*
- uses: jonabc/setup-licensed@v1.1.2
with:
version: '3.x'
github_token: ${{ secrets.GITHUB_TOKEN }}
- run: licensed cache
- run: licensed status
- uses: slackapi/slack-github-action@v1.22.0
if: failure() && github.event_name == 'schedule'
with:
payload: |
{
"message": "License check for QURI Parts failed.",
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}