- Added support for new CSV import modules: sleep and vitals_baseline, expanding the import capabilities. - Implemented backend logic for handling CSV imports related to sleep and vitals baseline, including error handling and data processing. - Updated frontend components to include new modules in the CSV import interface, improving user experience. - Introduced unit tests for the new import functionalities to ensure reliability and correctness. - Enhanced existing CSV analysis features to accommodate the new modules, ensuring consistent behavior across the application.
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
name: Build Test
|
|
|
|
on:
|
|
push:
|
|
branches: [main, develop]
|
|
|
|
jobs:
|
|
pytest-backend-csv:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.12"
|
|
- name: Install dependencies
|
|
run: |
|
|
pip install -r backend/requirements.txt -r backend/requirements-dev.txt
|
|
- name: Pytest — CSV-Import & Parser (Smoke)
|
|
run: |
|
|
cd backend
|
|
python -m pytest tests/test_csv_parser_core.py tests/test_csv_import_executor.py tests/test_mapping_suggest.py -q --tb=short
|
|
|
|
lint-backend:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check backend syntax
|
|
run: |
|
|
python3 -m py_compile /home/lars/docker/bodytrack/backend/main.py
|
|
echo "✓ Backend syntax OK"
|
|
|
|
build-frontend:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Build frontend
|
|
run: |
|
|
cd /home/lars/docker/bodytrack/frontend
|
|
npm install
|
|
npm run build
|
|
echo "✓ Frontend build OK"
|