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/