Compare commits

...

2 Commits

Author SHA1 Message Date
Lukáš Kucharczyk 32c632f7a6
Move the test workflow out 2023-11-18 10:36:41 +01:00
Lukáš Kucharczyk 47f008628f
Add test workflow 2023-11-18 10:36:28 +01:00
2 changed files with 15 additions and 9 deletions

View File

@ -1,18 +1,11 @@
name: Django CI/CD name: Build and upload container
on: on:
push: push:
branches: [ main ]
paths-ignore: [ 'README.md' ] paths-ignore: [ 'README.md' ]
jobs: jobs:
test:
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
build-and-push: build-and-push:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' if: github.ref == 'refs/heads/main'

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