diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml new file mode 100644 index 0000000..cbbb2ca --- /dev/null +++ b/.gitea/workflows/test.yml @@ -0,0 +1,33 @@ +name: Run Unit Tests +on: + push: + +jobs: + test-package: + runs-on: ubuntu-latest + container: catthehacker/ubuntu:act-latest + strategy: + matrix: + python-version: + - "3.11" + - "3.12" + - "3.13" + env: + # workaround for container tool cache path, see https://gitea.com/gitea/act_runner/issues/70 + RUNNER_TOOL_CACHE: /toolcache + steps: + - uses: actions/checkout@v4 + - name: Install uv + uses: astral-sh/setup-uv@v4 + with: + enable-cache: true + github-token: ${{ secrets.CUSTOM_GITHUB_TOKEN }} + - name: Set up Python ${{ matrix.python-version }} + run: uv python install ${{ matrix.python-version }} + + - name: Install the project + run: uv sync --all-extras --dev + + - name: Run tests + # For example, using `pytest` + run: uv run pytest tests