Compare commits
5 commits
live
...
jedi/forge
Author | SHA1 | Date | |
---|---|---|---|
08f36249a9 | |||
fde173baf7 | |||
3882ce4b1d | |||
3f43b63981 | |||
9186ac89bd |
1 changed files with 32 additions and 0 deletions
32
.forgejo/workflows/deploy.yml
Normal file
32
.forgejo/workflows/deploy.yml
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
on: [ push ]
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: docker.io/python:latest
|
||||||
|
steps:
|
||||||
|
- name: Check out the code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: '3.11' # Adjust to your Django project’s Python version
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install -r requirements.txt
|
||||||
|
|
||||||
|
- name: Run migrations
|
||||||
|
run: python manage.py migrate
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: python manage.py test
|
||||||
|
deploy:
|
||||||
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: docker.io/serversideup/ansible:latest
|
||||||
|
steps:
|
||||||
|
- run: ansible --version
|
||||||
|
|
Loading…
Reference in a new issue