Skip to content

Update README.

Update README. #7

Workflow file for this run

name: Test Package Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v5
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install build pytest pytest-cov
- name: Install package dependencies
run: |
pip install -r requirements.txt
- name: Install package in editable mode
run: |
pip install -e .
- name: Build package
run: |
python -m build
- name: Run tests with coverage
run: |
pytest tests/ -v --cov=labrat --cov-branch --cov-report=xml --cov-report=term
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false
slug: sdhutchins/labrat