status-cli-tests/.github/workflows/linters.yml

33 lines
727 B
YAML
Raw Normal View History

2024-06-03 15:26:52 +00:00
name: Code Linters
on:
pull_request:
branches:
- master
jobs:
linters:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.12'
cache: 'pip'
- name: Set up virtual environment
run: |
python -m venv .venv
echo ".venv/bin" >> $GITHUB_PATH # Add virtualenv to PATH for subsequent steps
- name: Install dependencies based on requirements.txt
run: pip install -r requirements.txt
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit hooks
run: pre-commit run --all-files