mirror of
https://github.com/p2p-ld/nwb-linkml.git
synced 2024-11-10 00:34:29 +00:00
58 lines
No EOL
1.2 KiB
YAML
58 lines
No EOL
1.2 KiB
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
python-version: ["3.10", "3.11", "3.12"]
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install system libraries
|
|
run: |
|
|
sudo apt update
|
|
sudo apt install -y libhdf5-dev hdf5-tools
|
|
|
|
- name: Set up python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
cache: 'pip'
|
|
|
|
- name: Install dependencies
|
|
run: pip install -e .[tests]
|
|
working-directory: nwb_linkml
|
|
|
|
- name: Run Tests
|
|
run: pytest
|
|
working-directory: nwb_linkml
|
|
|
|
- name: Coveralls Parallel
|
|
uses: coverallsapp/github-action@v2.3.0
|
|
if: runner.os != 'macOS'
|
|
with:
|
|
flag-name: run-${{ join(matrix.*, '-') }}
|
|
parallel: true
|
|
debug: true
|
|
|
|
finish-coverage:
|
|
needs: test
|
|
if: ${{ always() }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Coveralls Finished
|
|
uses: coverallsapp/github-action@v2.3.0
|
|
with:
|
|
parallel-finished: true |