Update CI workflow with simpler syntax
Some checks failed
CI / test (push) Failing after 6s

This commit is contained in:
2026-02-01 21:01:39 +00:00
parent c4ccfccb61
commit f3e5f15d75

View File

@@ -2,16 +2,18 @@ name: CI
on:
push:
branches: [main, master]
branches: [main]
pull_request:
branches: [main, master]
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
@@ -24,15 +26,7 @@ jobs:
pip install -e ".[dev]"
- name: Run tests
run: |
python -m pytest tests/ -v --tb=short
EXIT_CODE=$?
if [ $EXIT_CODE -ne 0 ]; then
echo "Tests failed with exit code $EXIT_CODE"
exit $EXIT_CODE
fi
run: python -m pytest tests/ -v --tb=short
- name: Run linting
run: |
pip install ruff
ruff check src/confgen/ tests/
- name: Run ruff linting
run: pip install ruff && ruff check src/confgen/ tests/