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