konova/.gitea/workflows/UnitTests.yaml
Jonas Häder 30cc665f05
Some checks failed
Gitea Actions Demo / Run Tests (push) Failing after 19s
.gitea/workflows/UnitTests.yaml aktualisiert
2025-10-10 16:40:17 +02:00

37 lines
930 B
YAML

name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
Run Tests:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
- name: Install dependencies if requirements.txt exists
run: |
python3 -m venv venv
source venv/bin/activate
if [ -f requirements.txt ]; then
pip install --no-deps -r requirements.txt
else
echo "No requirements.txt found, skipping installation."
fi
- name: Read .env from server and write to current directory
run: |
cat .env > .env
- name: Run unit tests
run: |
source venv/bin/activate
python3 manage.py test