Skip to content

Release v0.1

Release v0.1 #3

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: Build package
run: |
python -m build
- name: Install built package
run: |
pip install dist/*.whl
- name: Run tests with coverage
run: |
pytest tests/ -v --cov=labrat --cov-report=xml --cov-report=term
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: sdhutchins/labrat