Skip to content

Merge branch 'main' into dependabot/pip/fastapi-0.115.6 #169

Merge branch 'main' into dependabot/pip/fastapi-0.115.6

Merge branch 'main' into dependabot/pip/fastapi-0.115.6 #169

Workflow file for this run

name: Unit tests
on:
push:
workflow_call:
jobs:
container_job:
name: Unit tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.11', '3.12']
fail-fast: false
container: python:${{ matrix.python-version }}-slim
steps:
# Downloads a copy of the code in your repository before running CI tests
- name: Check out repository code
uses: actions/checkout@v4
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flit
flit install --deps develop --symlink
env:
FLIT_ROOT_INSTALL: 1
- name: Run Unit tests
run: pytest --cov-branch --cov=lso --cov-report=xml
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
files: ./coverage.xml