Skip to content

Commit

Permalink
Shorten pip testing
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjward committed Nov 18, 2024
1 parent 6461014 commit 952be65
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ concurrency:

jobs:
build:
name: "Build Firedrake"
name: "Build Firedrake using pip"
# Run on our self-hosted machines
runs-on: ubuntu-latest
runs-on: [self-hosted, Linux]
container:
image: firedrakeproject/firedrake-env:latest
options: --user root
Expand Down Expand Up @@ -66,8 +66,8 @@ jobs:
export MPI_HOME="$PETSC_DIR/packages"
pip install \
--log=firedrake-install.log \
--no-binary mpi4py,h5py \
-v -e './firedrake[test]'
--no-binary mpi4py,h5py \ # do these need to be no-binary?
-v -e './firedrake[test]' # must the install be editable?
- name: Add mpiexec to the venv and install timeout
run: |
Expand All @@ -79,12 +79,10 @@ jobs:
chmod +x "$VIRTUAL_ENV"/bin/mpiexec
pip install -U pytest-timeout
- name: Test Firedrake
- name: Run Firedrake smoke tests
run: |
source pip_venv/bin/activate
cd pip_venv/src/firedrake
echo OMP_NUM_THREADS is "$OMP_NUM_THREADS"
echo OPENBLAS_NUM_THREADS is "$OPENBLAS_NUM_THREADS"
pytest -v tests/firedrake/test_0init.py
pytest \
--durations=200 \
Expand All @@ -93,7 +91,7 @@ jobs:
-o faulthandler_timeout=1860 \
-n 12 --dist worksteal \
--junit-xml=firedrake.xml \
-sv tests
-sv tests/firedrake/regression -k "poisson_strong or stokes_mini or dg_advection"
timeout-minutes: 120

- name: Publish Test Report
Expand Down

0 comments on commit 952be65

Please sign in to comment.