From c81d3d18d6fe5a2d6d730d622c807a8a13e05dd6 Mon Sep 17 00:00:00 2001 From: ZoeLeibowitz Date: Thu, 6 Jun 2024 15:49:19 +0100 Subject: [PATCH] workflows: Add numpy and pytest back --- .github/workflows/pytest-petsc.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/pytest-petsc.yml b/.github/workflows/pytest-petsc.yml index 3ed3c4f4c20..a9b3de9d16c 100644 --- a/.github/workflows/pytest-petsc.yml +++ b/.github/workflows/pytest-petsc.yml @@ -45,6 +45,20 @@ jobs: make all grep BLASLAPACK_LIB $HOME/petsc/petsc/arch-linux-c/lib/petsc/conf/petscvariables + - name: Install Python dependencies + run: | + pip3 install --upgrade pip + pip3 install --no-binary numpy numpy + python -c "import numpy; numpy.show_config()" + pip3 install -e .[extras,mpi,tests] + + - name: Test with pytest + run: | + export PETSC_DIR=$HOME/petsc/petsc + export PETSC_ARCH=arch-linux-c + python3 scripts/clear_devito_cache.py + python3 -m pytest tests/test_petsc.py + - name: Upload coverage to Codecov uses: codecov/codecov-action@v4