Skip to content

Commit 8d7710c

Browse files
authored
Merge pull request #5883 from brockdyer03/pytest-dockers
Update Dockerfiles for upcoming Pytest changes
2 parents 9c0bc04 + 7b6edc0 commit 8d7710c

7 files changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/ci-github-actions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ jobs:
172172
run: |
173173
brew upgrade || brew link --overwrite python@3.12
174174
brew install gcc@14 ninja hdf5 fftw boost
175-
python3 -m pip install numpy h5py
175+
python3 -m pip install numpy h5py pytest pytest-cov pytest-order
176176
177177
- name: Configure
178178
run: tests/test_automation/github-actions/ci/run_step.sh configure

config/docker/dependencies/centos10/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ RUN dnf install -y ninja-build
1111
RUN dnf install -y rsync # Nexus hard requirement
1212
RUN dnf install -y python3-numpy
1313
RUN dnf install -y python3-h5py
14+
RUN dnf install -y python3-pytest
15+
RUN dnf install -y python3-pytest-cov
16+
RUN dnf install -y python3-pytest-order
1417

1518
## Add a user different from root for OpenMPI
1619
RUN adduser -u 1000 -d /home/user -s /bin/bash user

config/docker/dependencies/ubuntu22/clang/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ RUN export DEBIAN_FRONTEND=noninteractive &&\
2424
sudo \
2525
curl \
2626
rsync \
27+
python3-numpy python3-pytest python3-pytest-cov python3-pytest-order \
2728
wget \
2829
software-properties-common \
2930
vim \

config/docker/dependencies/ubuntu22/openmpi/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ RUN export DEBIAN_FRONTEND=noninteractive &&\
4545
python3-pandas \
4646
python3-coverage \
4747
python3-pytest \
48+
python3-pytest-cov \
49+
python3-pytest-order \
4850
python3-pip \
4951
-y
5052

config/docker/dependencies/ubuntu22/serial/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ RUN export DEBIAN_FRONTEND=noninteractive &&\
4343
python3-pandas \
4444
python3-coverage \
4545
python3-pytest \
46+
python3-pytest-cov \
47+
python3-pytest-order \
4648
python3-pip \
4749
-y
4850

nexus/pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ build-backend = "hatchling.build"
2626
[dependency-groups]
2727
dev = [
2828
"pytest>=9.0.2",
29+
"coverage[toml]>=7.13.5; python-version < '3.11'",
30+
"coverage>=7.13.5; python-version >= '3.11'",
2931
"pytest-cov>=7.0.0",
3032
]
3133

tests/test_automation/containers/Dockerfile_gcc_mpi_develop_complete

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ RUN groupadd --gid $USER_GID $USERNAME \
2828
RUN apt-get install -y --no-install-recommends \
2929
ca-certificates make ninja-build git cmake wget bzip2 rsync g++ gfortran openmpi-bin libopenmpi-dev libboost-dev \
3030
libopenblas-openmp-dev libhdf5-dev libxml2-dev libfftw3-dev \
31-
python3-numpy python3-scipy python3-pandas python3-h5py python3-matplotlib
31+
python3-numpy python3-scipy python3-pandas python3-h5py python3-matplotlib \
32+
python3-pytest python3-pytest-cov python3-pytest-order
3233

3334
# Convenience feature to setup certificates for behind firewall builds.
3435
# * Copy any provided certificates into the container and update the SSL config

0 commit comments

Comments
 (0)