Compare commits
No commits in common. "a1b3e1efc23dd44c0e48329748ee0e2f20f0a2d4" and "32c632f7a6cd91676ebdb6e7790a659f969847e5" have entirely different histories.
a1b3e1efc2
...
32c632f7a6
|
@ -1,18 +1,11 @@
|
|||
name: Django CI/CD
|
||||
name: Build and upload container
|
||||
|
||||
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'
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue