Skip to content

Merge pull request #600 from ISA-tools/further_test_cleanup #730

Merge pull request #600 from ISA-tools/further_test_cleanup

Merge pull request #600 from ISA-tools/further_test_cleanup #730

name: Python package
on:
pull_request:
push:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13' ]
steps:
- uses: actions/[email protected]
- name: Download Test Data
run: |
bash -x get_test_data.sh
- name: Install uv
uses: astral-sh/[email protected]
with:
enable-cache: true
cache-dependency-glob: uv.lock
- name: Sync dependencies
run: |
uv python pin ${{ matrix.python-version }}
uv sync --group dev
- uses: astral-sh/ruff-action@v3
- run: ruff check
- run: ruff format
- name: Test with python unittest
run: |
uv run --python ${{ matrix.python-version }} pytest
uv run --python ${{ matrix.python-version }} coverage run -m unittest discover -s tests/
uv run --python ${{ matrix.python-version }} coverage report -m
- name: Coveralls
uses: AndreMiras/coveralls-python-action@develop
with:
parallel: true
flag-name: Unit Test
coveralls_finish:
needs: build
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: AndreMiras/coveralls-python-action@develop
with:
parallel-finished: true