Files
anyway/.gitea/workflows/backend_run_test.yaml
kilian 8ceaf549e4
Some checks failed
Build and deploy the backend to staging / Deploy to staging (pull_request) Has been cancelled
Build and deploy the backend to staging / Build and push image (pull_request) Has been cancelled
Run linting on the backend code / Build (pull_request) Has been cancelled
Run testing on the backend code / Build (pull_request) Failing after 22s
other test
2025-11-24 15:27:58 +01:00

38 lines
804 B
YAML

on:
pull_request:
branches:
- main
paths:
- backend/**
name: Run testing on the backend code
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: https://gitea.com/actions/checkout@v4
- name: Install uv (setup-uv)
uses: astral-sh/setup-uv@v6
with:
version: "latest"
- name: Install dependencies
working-directory: backend
run: |
uv sync --frozen --no-cache --no-dev
- name: Run Tests
run: uv run pytest src --html=report.html --self-contained-html --log-cli-level=DEBUG
working-directory: backend
- name: Upload HTML report
if: always()
uses: https://gitea.com/actions/upload-artifact@v3
with:
name: pytest-html-report
path: backend/report.html