Compare commits
9 Commits
css_experi
...
a1b3e1efc2
Author | SHA1 | Date | |
---|---|---|---|
a1b3e1efc2
|
|||
d79f387de7
|
|||
32c632f7a6
|
|||
47f008628f
|
|||
e449164fdb
|
|||
555608d8c6
|
|||
a7293c659d | |||
f36e692361 | |||
fe97f540a0 |
@ -2,14 +2,20 @@ name: Django CI/CD
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
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:
|
||||
needs: test
|
||||
runs-on: ubuntu-latest
|
||||
if: github.ref == 'refs/heads/main'
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
Reference in New Issue
Block a user