Skip to content

mkdocs

mkdocs #15

Workflow file for this run

---
name: Linting
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
Linting:
runs-on: ubuntu-latest
steps:
# checkout repo
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
# install poetry
- name: Install poetry
run: pipx install poetry==${{ vars.POETRY_VERSION }}
# set up python with cache
- name: Setup python ${{ vars.PYTHON_VERSION }}
uses: actions/setup-python@v4
with:
python-version: ${{ vars.PYTHON_VERSION }}
cache: 'poetry'
# Install requirements (including dev-dependencies)
- name: Install requirements
run: poetry install --with lint
- name: Run linters
run: |
set -o pipefail
poetry run make lint