refactor CI workflow for consistency and clarity
All checks were successful
Gitea CI / lint-and-test (push) Successful in 1m8s

This commit is contained in:
Space-Banane
2026-02-07 12:09:10 +01:00
parent 81d1eee19b
commit fcbb7fa234

View File

@@ -9,27 +9,26 @@ on:
jobs: jobs:
lint-and-test: lint-and-test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: catthehacker/ubuntu:act-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v3
- name: Set up Python 3.14
- name: Set up Python uses: actions/setup-python@v3
uses: actions/setup-python@v5 with:
with: python-version: "3.14"
python-version: '3.12'
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install flake8 pip install flake8
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8 - name: Lint with flake8
run: | run: |
# stop the build if there are Python syntax errors or undefined names # stop the build if there are Python syntax errors or undefined names
# E9, F63, F7, F82 are logic/syntax errors # E9, F63, F7, F82 are logic/syntax errors
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Check syntax - name: Check syntax
run: | run: |
python -m py_compile main.py python -m py_compile main.py