diff --git a/.github/workflows/.github-actions-demo.yml b/.github/workflows/.github-actions-demo.yml index f167f05eb..00f6565ff 100644 --- a/.github/workflows/.github-actions-demo.yml +++ b/.github/workflows/.github-actions-demo.yml @@ -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