Compare commits
7 Commits
filters-wi
...
32c632f7a6
Author | SHA1 | Date | |
---|---|---|---|
32c632f7a6
|
|||
47f008628f
|
|||
e449164fdb
|
|||
555608d8c6
|
|||
a7293c659d | |||
f36e692361 | |||
fe97f540a0 |
@ -1,15 +1,14 @@
|
||||
name: Django CI/CD
|
||||
name: Build and upload container
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
paths-ignore: [ 'README.md' ]
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
needs: test
|
||||
runs-on: ubuntu-latest
|
||||
if: github.ref == 'refs/heads/main'
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
13
.gitea/workflows/test.yml
Normal file
13
.gitea/workflows/test.yml
Normal file
@ -0,0 +1,13 @@
|
||||
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
|
Reference in New Issue
Block a user