also test Ubuntu packages
This commit is contained in:
parent
0dd67b5d44
commit
06d62b42cb
|
@ -2,7 +2,7 @@ name: Test Processing Tools
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
pip:
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -20,7 +20,26 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install pytest pandas scipy h5py vtk matplotlib pyyaml
|
pip install pytest pandas scipy h5py vtk matplotlib pyyaml
|
||||||
- name: Test with pytest
|
- name: Install and run unit tests
|
||||||
run: |
|
run: |
|
||||||
python -m pip install ./python --no-deps -vv --use-feature=in-tree-build
|
python -m pip install ./python --no-deps -vv --use-feature=in-tree-build
|
||||||
pytest python
|
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
|
||||||
|
|
Loading…
Reference in New Issue