Skip to content

refactored product to get_product #238

refactored product to get_product

refactored product to get_product #238

Workflow file for this run

name: Unit Tests
on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
- name: Truncate pyproject for hashing
run: |
sed -n '1,/#\{80\}/p' pyproject.toml > pyproject-hash.toml
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.8'
cache: 'pip'
cache-dependency-path: pyproject-hash.toml
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[test]
- name: Run Pytest with Coverage
run: |
./scripts/coverage.sh --xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true