Improve CI #68

Merged
lukas merged 5 commits from add-ci-test into main 2023-11-18 09:41:03 +00:00
1 changed files with 9 additions and 1 deletions

View File

@ -2,12 +2,20 @@ name: Django CI/CD
on: on:
push: push:
branches: [ main ]
paths-ignore: [ 'README.md' ] paths-ignore: [ 'README.md' ]
jobs: 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: build-and-push:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4