also test Ubuntu packages

This commit is contained in:
Martin Diehl 2021-09-01 23:37:46 +02:00
parent 0dd67b5d44
commit 06d62b42cb
1 changed files with 21 additions and 2 deletions

View File

@ -2,7 +2,7 @@ name: Test Processing Tools
on: [push]
jobs:
build:
pip:
runs-on: ${{ matrix.os }}
strategy:
@ -20,7 +20,26 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install pytest pandas scipy h5py vtk matplotlib pyyaml
- name: Test with pytest
- name: Install and run unit tests
run: |
python -m pip install ./python --no-deps -vv --use-feature=in-tree-build
pytest python
apt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install pytest
run: |
python -m pip install --upgrade pip
pip install pytest
- name: Install dependencies
run: >
sudo apt-get update &&
sudo apt-get install python3-pip python3-pytest python3-pandas python3-scipy
python3-h5py python3-vtk7 python3-matplotlib python3-yaml -y
- name: Run unit tests
run: |
PYTHONPATH=${PWD}/python python -m pytest python