feat: added tests
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user