install cilck before running script #2
Workflow file for this run
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 license headers | |
on: | |
push: | |
branches: | |
- "test-precommit" | |
jobs: | |
check-license-headers: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout github repo (+ download lfs dependencies) | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install click | |
- name: Check src licenses | |
run: python license_checker_and_adder.py --path=../antarest/ | |
working-directory: scripts | |
- name: Check test licenses | |
run: python license_checker_and_adder.py --path=../tests/ | |
working-directory: scripts |