Compare commits

...

5 commits

Author SHA1 Message Date
08f36249a9 add test stage in workflow
Some checks failed
/ test (push) Failing after 1m5s
/ deploy (push) Successful in 17s
2024-11-09 05:42:42 +01:00
fde173baf7 Check ansible version
All checks were successful
/ test (push) Successful in 1m31s
2024-11-07 20:19:14 +01:00
3882ce4b1d Install ansible
Some checks failed
/ test (push) Has been cancelled
2024-11-07 20:10:13 +01:00
3f43b63981 Add python3 to actions
Some checks failed
/ test (push) Failing after 34s
2024-11-07 19:55:56 +01:00
9186ac89bd WIP: testing actions 2024-11-07 19:55:56 +01:00

View 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 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