This commit is contained in:
parent
d8447ad4d9
commit
0132af758e
1 changed files with 15 additions and 20 deletions
|
|
@ -4,38 +4,33 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- main
|
||||
# paths:
|
||||
# - "backend/**"
|
||||
# - "pyproject.toml"
|
||||
# - "uv.lock"
|
||||
# - "deploy/deploy-backend.sh"
|
||||
paths:
|
||||
- "backend/**"
|
||||
- "pyproject.toml"
|
||||
- "uv.lock"
|
||||
- ".forgejo/workflows/deploy_backend.yml"
|
||||
|
||||
|
||||
jobs:
|
||||
build_and_deploy:
|
||||
runs-on: roadrunner
|
||||
|
||||
container:
|
||||
image: python:3.12-bookworm
|
||||
|
||||
volumes:
|
||||
- /opt/blauwasser-api:/opt/blauwasser-api
|
||||
- /var/lib/blauwasser-api:/var/lib/blauwasser-api
|
||||
|
||||
steps:
|
||||
- name: Umgebung prüfen
|
||||
run: |
|
||||
python3 --version
|
||||
node --version
|
||||
git --version
|
||||
|
||||
- name: Repository auschecken
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Python einrichten
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.12"
|
||||
|
||||
# - name: Backend testen
|
||||
# working-directory: backend
|
||||
# run: |
|
||||
# python -m pip install -U pip
|
||||
# python -m pip install -e .
|
||||
# pytest
|
||||
# python3 -m pip install --upgrade pip
|
||||
# python3 -m pip install -e .
|
||||
# python3 -m pytest
|
||||
|
||||
- name: Backend kopieren
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue