-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (28 loc) · 888 Bytes
/
ci.yml
File metadata and controls
34 lines (28 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Balkonkraftwerk CI
# Wann soll die Action laufen? Bei jedem Push auf den main-Branch
on:
push:
branches:
- main
jobs:
test-code:
runs-on: ubuntu-latest
steps:
# 1. Holt deinen Code von GitHub in den Test-Server
- name: Code auschecken
uses: actions/checkout@v4
# 2. Installiert Python 3.11
- name: Python einrichten
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip' # Macht zukünftige Durchläufe viel schneller!
# 3. Installiert deine requirements.txt
- name: Abhängigkeiten installieren
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
# 4. Ein einfacher Syntax-Check (kompiliert die app.py testweise)
- name: Python Syntax Check
run: |
python -m py_compile app.py