added automated testing
Some checks failed
Deploy Plattform-Core / test (push) Failing after 8s
Deploy Plattform-Core / deploy (push) Has been skipped

This commit is contained in:
Ida 2026-05-20 12:13:38 +02:00
parent f468a377e4
commit 575e5b6fbf

View file

@ -4,8 +4,32 @@ on:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Python einrichten
uses: actions/setup-python@v5
with:
python-version: '3.11' # eure Version anpassen
- name: Dependencies installieren
run: |
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt --no-cache-dir
- name: Tests ausführen
run: |
source .venv/bin/activate
pytest tests/ -v
deploy:
runs-on: ubuntu-latest
needs: test
steps:
- name: Deploy to Infomaniak VM
env: