From 4c1dca0e041d0aa49ee16aee91d4d3a4bc0c1b49 Mon Sep 17 00:00:00 2001 From: David Perl Date: Thu, 2 Jul 2026 11:53:42 +0200 Subject: [PATCH] ci: add test run --- .gitea/workflows/ci.yml | 42 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..c29287c --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,42 @@ +name: Full CI +on: + push: + pull_request: + workflow_dispatch: + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + + test: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.11", "3.12", "3.13"] + + steps: + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Checkout code + uses: actions/checkout@v5 + + - name: Install + run: | + pip install uv + uv venv + source .venv/bin/activate + uv pip install -e .[test] + + - name: Run Pytest with Coverage + id: coverage + run: | + source .venv/bin/activate + pytest --random-order --cov=./ --cov-config=./pyproject.toml --cov-branch --cov-report=xml --no-cov-on-fail ./tests/