Skip to content

Feature/week5

Feature/week5 #29

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Set up Python
run: uv python install 3.11
- name: Install the dependencies
run: |
uv sync
- name: Run pre-commit checks
run: |
uv pip install pre-commit
uv run pre-commit run --all-files
- name: Run tests with coverage
run: |
uv pip install pytest pytest-mock pytest-cov pyspark databricks-sdk
uv run pytest --cov=power_consumption --cov-report=term-missing --cov-fail-under=70 tests/