Skip to content

fixed test_single_psu #290

fixed test_single_psu

fixed test_single_psu #290

name: Coverage
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
code-coverage:
runs-on: [ubuntu-latest]
strategy:
matrix:
python-version: ["3.13"]
steps:
- uses: actions/checkout@v2
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: Print the installed uv version
run: echo "Installed uv version is ${{ steps.setup-uv.outputs.uv-version }}"
- name: Install dependencies
run: |
uv python install ${{ matrix.python-version }}
uv sync
- name: Running tests with coverage
run: |
uv run pytest -v --cov-report xml --cov=src/samplics tests
uv run codecov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
# files: ./coverage1.xml,./coverage2.xml
# directory: ./coverage/reports/
# flags: unittests
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: true
# path_to_write_report: ./coverage/codecov_report.txt
verbose: true