name: CI on: pull_request: push: branches: [main] workflow_dispatch: jobs: lint: runs-on: ubuntu-latest steps: - run: ls -la "$GITEA_WORKSPACE" && pip install ruff==6.* && (cd "$GITEA_WORKSPACE" && ruff check .) test: needs: lint runs-on: ubuntu-latest steps: - run: pip install -r "$GITEA_WORKSPACE/requirements.txt" pytest pytest-cov - run: cd "$GITEA_WORKSPACE" && pytest -q --cov=app --cov-branch --cov-fail-under=60 metrics: needs: test runs-on: ubuntu-latest steps: - run: pip install radon xenon - run: cd "$GITEA_WORKSPACE" && radon cc app -s -a && xenon --max-absolute C app/