CI_RUNNERS #655
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: 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 |