Overhaul CI #4
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: 'READY: Lint codebase' | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- ready_for_review | |
branches: | |
- main | |
- stable | |
jobs: | |
lint_flake8: | |
name: flake8 | |
runs-on: 'ubuntu-latest' | |
if: ${{ !github.event.pull_request.draft }} | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v4 | |
- name: Install Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
cache: 'pip' | |
cache-dependency-path: requirements-flake8.txt | |
- name: Update pip | |
run: python -m pip install -U pip | |
- name: Install tox | |
run: python -m pip install -U tox | |
- name: Run flake8 | |
run: tox -e flake8 | |
lint_interrogate: | |
name: interrogate | |
runs-on: 'ubuntu-latest' | |
if: ${{ !github.event.pull_request.draft }} | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v4 | |
- name: Install Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
cache: 'pip' | |
cache-dependency-path: requirements-interrogate.txt | |
- name: Update pip | |
run: python -m pip install -U pip | |
- name: Install tox | |
run: python -m pip install -U tox | |
- name: Run interrogate | |
run: tox -e interrogate |