7 Commits

Author SHA1 Message Date
32c632f7a6 Move the test workflow out 2023-11-18 10:36:41 +01:00
47f008628f Add test workflow 2023-11-18 10:36:28 +01:00
e449164fdb Re-add test step to CI 2023-11-18 10:32:12 +01:00
555608d8c6 Fix syntax
All checks were successful
Django CI/CD / build-and-push (push) Successful in 1m14s
2023-11-18 09:52:17 +01:00
a7293c659d CI: Ignore README.md 2023-11-18 09:33:31 +01:00
f36e692361 Do not run for pull requests 2023-11-18 09:33:10 +01:00
fe97f540a0 Fix CI being blocked 2023-11-18 09:32:41 +01:00
2 changed files with 16 additions and 4 deletions

View File

@ -1,15 +1,14 @@
name: Django CI/CD name: Build and upload container
on: on:
push: push:
branches: [ main ] branches: [ main ]
pull_request: paths-ignore: [ 'README.md' ]
branches: [ main ]
jobs: jobs:
build-and-push: build-and-push:
needs: test
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4

13
.gitea/workflows/test.yml Normal file
View File

@ -0,0 +1,13 @@
name: Test
on: [ push, pull_request ]
jobs:
run-tests:
runs-on: python:3.12
steps:
- python -m pip install poetry
- poetry install
- poetry env info
- poetry run python manage.py migrate
- poetry run pytest