Skip to content

Add human capital beta framework: library, paper, notebook, docs #10

Add human capital beta framework: library, paper, notebook, docs

Add human capital beta framework: library, paper, notebook, docs #10

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: pip install -e ".[dev]"
- name: Lint with ruff
run: ruff check .
- name: Check formatting with black
run: black --check .
- name: Type check with mypy
run: mypy lifecycle_allocation/
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install -e ".[dev]"
- name: Run tests
run: pytest tests/ -v --cov=lifecycle_allocation --cov-fail-under=90