waku-interop-tests/.github/workflows/linters.yml

33 lines
727 B
YAML
Raw Normal View History

2023-11-01 12:02:29 +00:00
name: Code Linters
on:
pull_request:
branches:
- master
jobs:
2023-11-01 12:36:16 +00:00
linters:
2023-11-01 12:02:29 +00:00
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