1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 11:16:47 +00:00
webvirtcloud/.github/workflows/linter.yml
catborise a2b8bb1cd5 ci: run tests and lint on pushes to every branch
Branches no longer need a pull request to master to be tested; a
branch is checked when it is pushed and lands on master by
fast-forward once it is green. Pull requests to master still run the
checks. CodeQL keeps running on master, its pull requests and its
weekly schedule.
2026-10-04 12:07:36 +03:00

27 lines
545 B
YAML

name: Lint
on:
push:
branches: ['**']
pull_request:
branches: [master]
jobs:
ruff:
name: Ruff
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
# Same ruff version as dev/requirements.txt
- name: Install Ruff
run: pip install "$(grep '^ruff==' dev/requirements.txt)"
- name: Run Ruff
run: ruff check --output-format=github .