nwb-linkml/.github/workflows/tests.yml
2024-07-02 00:12:23 -07:00

41 lines
877 B
YAML

name: Tests
on:
push:
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: Report coverage
working-directory: nwb_linkml
run: "coveralls --service=github"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}