c3lf-system-3/.forgejo/workflows/deploy.yml
jedi 08f36249a9
Some checks failed
/ test (push) Failing after 1m5s
/ deploy (push) Successful in 17s
add test stage in workflow
2024-11-09 05:42:42 +01:00

32 lines
749 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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 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:
runs-on: docker
container:
image: docker.io/serversideup/ansible:latest
steps:
- run: ansible --version