Compare commits

...

2 Commits

Author SHA1 Message Date
Lukáš Kucharczyk a1b3e1efc2
Revert "Add test workflow"
This reverts commit 47f008628f.
2023-11-18 10:39:43 +01:00
Lukáš Kucharczyk d79f387de7
Revert "Move the test workflow out"
This reverts commit 32c632f7a6.
2023-11-18 10:39:29 +01:00
2 changed files with 9 additions and 15 deletions

View File

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

View File

@ -1,13 +0,0 @@
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