added automated testing
This commit is contained in:
parent
f468a377e4
commit
575e5b6fbf
1 changed files with 24 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue