c3lf-system-3/.forgejo/workflows/deploy.yml

33 lines
749 B
YAML
Raw Normal View History

2024-11-09 04:28:27 +00:00
on: [ push ]
2024-11-06 21:26:48 +00:00
jobs:
test:
2024-11-09 04:28:27 +00:00
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 projects 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:
2024-11-06 21:26:48 +00:00
runs-on: docker
2024-11-07 19:10:13 +00:00
container:
2024-11-07 19:11:35 +00:00
image: docker.io/serversideup/ansible:latest
2024-11-06 21:26:48 +00:00
steps:
2024-11-07 19:11:35 +00:00
- run: ansible --version
2024-11-06 21:26:48 +00:00