Skip to content

[pre-commit.ci] pre-commit autoupdate #246

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #246

Workflow file for this run

name: Lint
on:
schedule:
- cron: 00 00 * * 1 # every Monday at 00:00
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- uses: actions/cache@v2
with:
path: ~/.cache/pre-commit
key: precommit-${{ env.pythonLocation }}-${{ hashFiles('**/.pre-commit-config.yaml') }}
- name: Install dependencies
run: |
sudo apt install pandoc
python -m pip install --upgrade pip
pip install tox
- name: Lint code
run: |
tox -e lint
- name: Lint documentation
run: |
tox -e check-docs