fastapi-template/.forgejo/workflows/publish.yaml

26 lines
548 B
YAML
Raw Normal View History

2026-06-15 09:47:27 +01:00
---
name: ci
on:
push:
branches:
- main
jobs:
lint_and_test:
runs-on: docker
continue-on-error: true
container:
image: ghcr.io/astral-sh/uv:alpine
steps:
- run: apk add --no-cache nodejs npm git
- uses: actions/checkout@v4
with:
submodules: true
- run: uv python install # Gets Python version from pyproject.toml
- run: uv sync
- run: uv run ruff check
- run: uv run ruff format
2026-06-15 09:48:22 +01:00
- run: uv run pytest tests
2026-06-15 09:47:27 +01:00
env:
ENVIRONMENT: testing