Skip to content

Upload coverage to Coveralls.io #91

Upload coverage to Coveralls.io

Upload coverage to Coveralls.io #91

Workflow file for this run

name: openMINDS_Python_test_pipeline
on:
pull_request:
branches:
- pipeline
jobs:
build_and_test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.12", "3.14"]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install requirements
run: |
pip install -r requirements.txt
- name: Run build
run: |
python build.py
- name: Test built package
run: |
pip install pytest pytest-cov
pip install ./target
if [ "${{ matrix.python-version }}" = "3.14" ]; then
pytest -v --cov=openminds --cov-report term --cov-report lcov pipeline/tests
else
pytest -v pipeline/tests
fi
- name: Upload coverage to Coveralls
if: matrix.python-version == '3.14'
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage.lcov
parallel: false