Compare commits

...
Sign in to create a new pull request.

5 commits

Author SHA1 Message Date
94166d4caf add test stage in workflow
All checks were successful
/ deploy (push) Successful in 18s
/ test (push) Successful in 50s
2024-12-05 00:55:01 +01:00
a3c479334b Check ansible version 2024-12-05 00:55:01 +01:00
2b7296ba39 Install ansible 2024-12-05 00:55:01 +01:00
9a3ea83ee2 Add python3 to actions 2024-12-05 00:55:01 +01:00
624b0dd937 WIP: testing actions 2024-12-05 00:55:01 +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