TISbackup/.gitea/workflows/lint.yml

25 lines
507 B
YAML
Raw Normal View History

2024-11-27 22:42:58 +01:00
name: lint
on:
push:
branches:
- 'master'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
2024-11-28 20:58:27 +01:00
fetch-depth: 0
2024-11-27 22:42:58 +01:00
- name: Install Python
2024-11-28 20:58:27 +01:00
uses: actions/setup-python@v4
2024-11-27 22:42:58 +01:00
with:
python-version: '3.12'
2024-11-27 22:51:28 +01:00
cache: 'pip' # caching pip dependencies
2024-11-28 20:58:27 +01:00
- run: pip install ruff
- run: |
ruff check .
# - uses: stefanzweifel/git-auto-commit-action@v4
# with:
# commit_message: 'style fixes by ruff'