Files
dibbler/.gitea/workflows/test.yaml
h7x4 b5fe77e488
Some checks failed
Run tests / run-tests (push) Failing after 39s
.gitea/workflows: init test pipeline
2025-12-08 19:58:18 +09:00

29 lines
746 B
YAML

name: Run tests
on:
pull_request:
push:
jobs:
run-tests:
runs-on: debian-latest
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Install dependencies
run: uv sync --lock
- name: Run tests
run: uv run pytest --cov=dibbler --cov-report=html
- name: Upload coverage report
uses: https://git.pvv.ntnu.no/Projects/rsync-action@v1
with:
source: ./htmlcov/
target: ${{ gitea.ref_name }}/coverage/
username: gitea-web
ssh-key: ${{ secrets.WEB_SYNC_SSH_KEY }}
host: pages.pvv.ntnu.no
known-hosts: "pages.pvv.ntnu.no ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH2QjfFB+city1SYqltkVqWACfo1j37k+oQQfj13mtgg"