Skip to content

action: using self hosted runner #557

action: using self hosted runner

action: using self hosted runner #557

Workflow file for this run

name: Code Linters
on:
pull_request:
branches:
- master
jobs:
linters:
timeout-minutes: 10
runs-on: ['self-hosted', 'ubuntu-22.04']
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