mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-08 11:16:47 +00:00
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.
27 lines
545 B
YAML
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 .
|