Skip to content

Feature/week1

Feature/week1 #15

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
uv run pytest --cov=power_consumption tests/