Files
fix-please-bot/.gitea/workflows/test.yml
Space-Banane 9a02b4e974
Some checks failed
Gitea CI / lint-and-test (push) Failing after 7s
add Gitea CI workflow for linting and testing Python code
2026-02-07 12:04:00 +01:00

34 lines
865 B
YAML

name: Gitea CI
on:
push:
branches: [ "main", "master" ]
pull_request:
branches: [ "main", "master" ]
jobs:
lint-and-test:
# Use a container to avoid dependency on host runner python versions
runs-on: ubuntu-latest
container:
image: python:3.14-slim
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
# E9, F63, F7, F82 are logic/syntax errors
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Check syntax
run: |
python -m py_compile main.py