Merge pull request #493 from creativecommons/eoy-banner-2nd-phase #334
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: Static Analysis | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
job: | |
runs-on: ubuntu-latest | |
steps: | |
# https://github.com/actions/setup-python | |
- name: Install Python 3.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install pipenv | |
run: | | |
pip install --upgrade pip | |
pip install pipenv | |
# https://github.com/actions/checkout | |
- name: Checkout cc-legal-tools-app | |
uses: actions/checkout@v4 | |
- name: Install Python dependencies | |
# Install _only_ [dev-packages] | |
run: pipenv sync --categories static-analysis --system | |
- name: pre-commit | |
run: pre-commit run --show-diff-on-failure --color=always --all-files |