From f3e5f15d75ded1b3c62b0c0fe196e5be38df3d10 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Sun, 1 Feb 2026 21:01:39 +0000 Subject: [PATCH] Update CI workflow with simpler syntax --- .gitea/workflows/ci.yml | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 67a226c..4af0357 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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/