Configured to run Ruff and tests
This commit is contained in:
parent
fff7ccde12
commit
2d958ba520
1 changed files with 23 additions and 0 deletions
23
.forgejo/workflows/publish.yaml
Normal file
23
.forgejo/workflows/publish.yaml
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
---
|
||||||
|
name: ci
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build_and_publish:
|
||||||
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: ghcr.io/catthehacker/ubuntu:runner-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: astral-sh/ruff-action@v3
|
||||||
|
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
|
||||||
|
with:
|
||||||
|
version: "0.11.19"
|
||||||
|
- run: uv python install # Gets Python version from pyproject.toml
|
||||||
|
- run: uv sync
|
||||||
|
- run: uv run pytest test
|
||||||
|
env:
|
||||||
|
ENVIRONMENT: testing
|
||||||
Loading…
Add table
Add a link
Reference in a new issue