feat: added tests
CI / test (push) Failing after 5s
CI / build (push) Has been skipped

This commit is contained in:
2026-07-02 14:12:48 +02:00
parent 21b54c8fd7
commit cd3a1a7c47
8 changed files with 122 additions and 1 deletions
+21 -1
View File
@@ -9,8 +9,28 @@ defaults:
shell: sh
jobs:
test:
runs-on: ubuntu-latest
container:
image: python:3.13-slim
steps:
- name: Checkout
run: |
git clone https://git.spookydev.com/${{ gitea.repository }}.git .
git checkout ${{ gitea.sha }}
- name: Install uv
run: pip install uv --quiet
- name: Install dependencies
run: uv sync
- name: Run tests
run: uv run pytest
build:
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout
run: |
@@ -26,4 +46,4 @@ jobs:
-u ${{ secrets.REGISTRY_USER }} \
-p ${{ secrets.REGISTRY_PASSWORD }}
docker push registry.spookydev.com/${{ gitea.repository }}:${{ gitea.sha }}
docker push registry.spookydev.com/${{ gitea.repository }}:latest
docker push registry.spookydev.com/${{ gitea.repository }}:latest