Compare commits
No commits in common. "32c632f7a6cd91676ebdb6e7790a659f969847e5" and "e449164fdb05ff6fff0e7fd5cf5efc3b7aace9fe" have entirely different histories.
32c632f7a6
...
e449164fdb
|
@ -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'
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue