diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..daa86ea --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,33 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + workflow_dispatch: + +jobs: + checks: + runs-on: docker + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install -e ".[dev]" + + - name: Lint (ruff) + run: ruff check src tests + + - name: Typecheck (mypy) + run: mypy src + + - name: Tests (pytest + coverage) + run: python -m pytest -v --cov=selectel_ml_tui --cov-report=term-missing \ No newline at end of file