ci: Configure APT mirror #612
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: Pre-commit check | |
on: | |
push: | |
branches-ignore: | |
- dependabot/** | |
- deepsource** | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
cache: pip | |
cache-dependency-path: requirements/*.txt | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip wheel | |
pip install -r requirements/lint.txt | |
- name: pre-commit | |
run: pre-commit run --all | |
pydocstyle: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
cache: pip | |
cache-dependency-path: requirements/*.txt | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip wheel | |
pip install -r requirements/lint.txt | |
- name: Run pydocstyle | |
run: | | |
echo "::add-matcher::.github/matchers/flake8.json" | |
pre-commit run --all pydocstyle | |
echo "::remove-matcher owner=flake8::" | |
flake8: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
cache: pip | |
cache-dependency-path: requirements/*.txt | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip wheel | |
pip install -r requirements/lint.txt | |
- name: Run flake8 | |
run: | | |
echo "::add-matcher::.github/matchers/flake8.json" | |
pre-commit run --all flake8 | |
echo "::remove-matcher owner=flake8::" |