fix: test job in deployment file
This commit is contained in:
parent
575e5b6fbf
commit
76cb841973
1 changed files with 3 additions and 11 deletions
|
|
@ -11,21 +11,13 @@ jobs:
|
|||
- 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
|
||||
python3 -m venv .venv
|
||||
.venv/bin/pip install -r requirements.txt --no-cache-dir
|
||||
|
||||
- name: Tests ausführen
|
||||
run: |
|
||||
source .venv/bin/activate
|
||||
pytest tests/ -v
|
||||
run: .venv/bin/pytest tests/ -v
|
||||
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
|||
Loading…
Reference in a new issue