Files
confgen/.gitea/workflows/ci.yml
7000pctAUTO f23544c243
Some checks failed
CI / test (push) Failing after 6s
CI / lint (push) Failing after 5s
fix: robust CI workflow with proper error handling
2026-02-01 20:57:44 +00:00

37 lines
817 B
YAML

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e . pytest pytest-cov
- name: Run tests
run: pytest tests/ -v --tb=short || exit 1
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install ruff
run: pip install ruff
- name: Run ruff
run: ruff check src/confgen/ || exit 1