Compare commits
2 Commits
32c632f7a6
...
a1b3e1efc2
Author | SHA1 | Date |
---|---|---|
Lukáš Kucharczyk | a1b3e1efc2 | |
Lukáš Kucharczyk | d79f387de7 |
|
@ -1,11 +1,18 @@
|
||||||
name: Build and upload container
|
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'
|
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