Skip to content

Commit cc71a82

Browse files
committed
feat: classes are dynamically created during CI/CD
1 parent e27cd88 commit cc71a82

16 files changed

Lines changed: 264 additions & 2888 deletions

.github/workflows/python-app.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
uses: actions/setup-python@v2
2121
with:
2222
python-version: "3.12"
23+
cache: pip
2324
- name: Install dependencies
2425
run: |
2526
echo '#!/usr/bin/env bash' | sudo tee /usr/local/bin/podman >/dev/null
@@ -31,6 +32,19 @@ jobs:
3132
pip install flake8 pytest
3233
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
3334
- name: Lint with flake8
35+
- name: Start FROST Server
36+
run: |
37+
docker compose -f frost_server/docker-compose.yaml up -d
38+
echo "Waiting for FROST-Server to be ready..."
39+
for i in {1..60}; do
40+
if curl -fsS http://localhost:8080/FROST-Server >/dev/null; then
41+
break
42+
fi
43+
sleep 2
44+
done
45+
- name: Generate SensorThings model (OData)
46+
run: |
47+
python -m frost_sta_client.odata_codegen.install_model --url http://localhost:8080/FROST-Server --username admin --password admin
3448
run: |
3549
# stop the build if there are Python syntax errors or undefined names
3650
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics

frost_sta_client/model/__init__.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

frost_sta_client/model/actuator.py

Lines changed: 0 additions & 185 deletions
This file was deleted.

0 commit comments

Comments
 (0)