Merge pull request #631 from OpenVoiceOS/release-0.3.4a1 #1781
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: Run License Tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- dev | |
workflow_dispatch: | |
jobs: | |
license_tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.8 | |
- name: Install Build Tools | |
run: | | |
python -m pip install build wheel uv | |
- name: Install System Dependencies | |
run: | | |
sudo apt-get update | |
sudo apt install python3-dev swig libssl-dev libfann-dev portaudio19-dev libpulse-dev | |
- name: Install core repo | |
run: | | |
uv pip install --system .[mycroft,lgpl,skills-essential] | |
- name: Get explicit and transitive dependencies | |
run: | | |
uv pip freeze > requirements-all.txt | |
- name: Check python | |
id: license_check_report | |
uses: pilosus/[email protected] | |
with: | |
requirements: 'requirements-all.txt' | |
fail: 'Copyleft,Other,Error' | |
fails-only: true | |
exclude: '^(precise-runner|fann2|ovos-adapt-parser|ovos-padatious|tqdm|bs4|sonopy|caldav|recurring-ical-events|x-wr-timezone|zeroconf|mutagen).*' | |
exclude-license: '^(Mozilla).*$' | |
- name: Print report | |
if: ${{ always() }} | |
run: echo "${{ steps.license_check_report.outputs.report }}" |