Fix error
Django CI/CD / build-and-push (push) Successful in 1m57s
Details
Django CI/CD / build-and-push (push) Successful in 1m57s
Details
This commit is contained in:
parent
07452d8c43
commit
f5faf92ee0
|
@ -7,29 +7,6 @@ on:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Set up Python 3.12
|
|
||||||
uses: actions/setup-python@v2
|
|
||||||
with:
|
|
||||||
python-version: 3.12
|
|
||||||
- name: Install Poetry
|
|
||||||
run: |
|
|
||||||
python -m pip install poetry
|
|
||||||
echo "$HOME/.local/bin" >> $GITHUB_PATH
|
|
||||||
- name: Install Dependencies
|
|
||||||
run: |
|
|
||||||
poetry install
|
|
||||||
- name: Apply migrations
|
|
||||||
run: |
|
|
||||||
poetry run python manage.py migrate
|
|
||||||
- name: Run Tests
|
|
||||||
run: |
|
|
||||||
poetry run python manage.py test
|
|
||||||
|
|
||||||
build-and-push:
|
build-and-push:
|
||||||
needs: test
|
needs: test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Reference in New Issue