Skip to content

Commit d6d85b7

Browse files
authored
Issue 219: add debian 13 tests and documentation (#220)
* add debian13 tests and documentation * remove python2 tests * update debian packages * update debian packages
1 parent 617b099 commit d6d85b7

4 files changed

Lines changed: 59 additions & 38 deletions

File tree

.ci/debian13_py3/Dockerfile

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
FROM debian:trixie
2+
3+
MAINTAINER DESY, Jan Kotanski <jankotan@gmail.com>
4+
5+
6+
RUN apt-get update
7+
RUN apt-get install -y base-passwd apt-utils dialog -y
8+
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
9+
RUN apt-get -qq update && apt-get -qq install -y libterm-readline-gnu-perl coreutils gnupg2 procps curl apt-transport-https gnupg2 ca-certificates wget
10+
RUN curl -s http://repos.pni-hdri.de/debian_repo.pub.gpg | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/debian-hdri-repo.gpg --import
11+
RUN chmod 644 /etc/apt/trusted.gpg.d/debian-hdri-repo.gpg
12+
# RUN add-apt-repository "deb http://repos.pni-hdri.de/apt/debian trixie main" -y
13+
RUN cd /etc/apt/sources.list.d && wget http://repos.pni-hdri.de/trixie-pni-hdri.list
14+
RUN apt-get -qq update && apt-get -qq -y dist-upgrade
15+
RUN apt-get -qq update && apt-get -qq install -y python3-sphinx apt-utils net-tools
16+
RUN apt-get install -y libpninexus3.3.0-dev libpninexus3.3.0 libh5cpp0.7.1-dev libh5cpp0.7.1 python3-numpy libhdf5-dev libboost-regex-dev libboost-program-options-dev libboost-system-dev libboost-date-time-dev libboost-filesystem-dev libblas-dev cython3 python3-setuptools libboost-python-dev python3-numpy-dev g++ python3-h5py git python3-pytest cmake doxygen python3-sphinx libboost-all-dev hdf5-filter-plugin bitshuffle
17+
# hdf5-plugin-bz2 hdf5-plugin-lz4
18+
19+
RUN useradd -ms /bin/bash tango
20+
RUN apt-get -qq install -y adduser
21+
RUN /bin/bash -c 'sleep 10'
22+
23+
# # install latest h5cpp
24+
# RUN mkdir -p /opt/h5cpp
25+
# RUN mkdir -p /h5cpp-src
26+
# RUN cd /h5cpp-src && git clone https://github.com/ess-dmsc/h5cpp && mkdir build
27+
# RUN cd /h5cpp-src/build && cmake -DCMAKE_INSTALL_PREFIX=/opt/h5cpp -DCMAKE_BUILD_TYPE=Release -DH5CPP_CONAN=DISABLE -DH5CPP_DISABLE_TESTS=True ../h5cpp && make install -j4
28+
# ENV CPLUS_INCLUDE_PATH=/opt/h5cpp/include
29+
# ENV LD_LIBRARY_PATH=/opt/h5cpp/lib
30+
# ENV H5CPP=/opt/h5cpp/lib/cmake/h5cpp-0.5
31+
# ENV H5CPP_LOCAL_PATH=/opt/h5cpp
32+
# ENV HDF5_HL_LOCAL_PATH=/usr/lib/x86_64-linux-gnu/hdf5/serial/
33+
34+
# # install latest linpninexus
35+
# RUN mkdir -p /opt/libpninexus
36+
# RUN mkdir -p /libpninexus-src
37+
# RUN cd /libpninexus-src && git clone https://github.com/pni-libraries/libpninexus && mkdir build
38+
# RUN cd /libpninexus-src/build && cmake -DCMAKE_BUILD_TYPE=Release -DPNINEXUS_CONAN=DISABLE -DCMAKE_INSTALL_PREFIX=/opt/libpninexus/ ../libpninexus && make -j4 && make install -j4
39+
# # RUN cd /libpninexus-src/build && cmake -Dh5cpp_DIR=$H5CPP -DCMAKE_BUILD_TYPE=Release -DPNINEXUS_CONAN=DISABLE -DCMAKE_INSTALL_PREFIX=/opt/h5cpp/ ../libpninexus && make -j4 && make install -j4
40+
# ENV CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/opt/libpninexus/include
41+
# ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/libpninexus/lib
42+
# ENV PNINEXUS_LOCAL_PATH=/opt/libpninexus
43+
44+
ENV PKG_CONFIG_PATH=/home/tango/lib/pkgconfig
45+
USER tango
46+
WORKDIR /home/tango

.github/workflows/tests.yml

Lines changed: 5 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-latest
2525
strategy:
2626
matrix:
27-
os: [debian12, debian11, debian10, ubuntu25.04, ubuntu24.04, ubuntu22.04]
27+
os: [debian13, debian12, debian11, ubuntu25.04, ubuntu24.04, ubuntu22.04]
2828
steps:
2929
- uses: actions/checkout@v2
3030
- uses: actions/setup-python@v2
@@ -44,7 +44,7 @@ jobs:
4444
run: .ci/run.sh 3
4545

4646
- name: Append documentation for the latest release version
47-
if: github.ref == 'refs/heads/develop' && matrix.os == 'debian12'
47+
if: github.ref == 'refs/heads/develop' && matrix.os == 'debian13'
4848
run: |
4949
docker exec ndts /bin/bash -c "cp doc/index.html doc/_config.yml build"
5050
docker exec ndts /bin/bash -c "git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'"
@@ -57,13 +57,13 @@ jobs:
5757
docker exec --user root ndts /bin/bash -c "rm -rf build build_tools *.h5 src test"
5858
5959
- name: Extract the code version from the branch name
60-
if: startsWith(github.ref, 'refs/heads/docs_') && matrix.os == 'debian12'
60+
if: startsWith(github.ref, 'refs/heads/docs_') && matrix.os == 'debian13'
6161
shell: bash
6262
run: echo "##[set-output name=docver;]$(echo ${GITHUB_REF#refs/heads/docs_})"
6363
id: extract_docver
6464

6565
- name: Append documentation for the extracted release version
66-
if: startsWith(github.ref, 'refs/heads/docs_') && matrix.os == 'debian12'
66+
if: startsWith(github.ref, 'refs/heads/docs_') && matrix.os == 'debian13'
6767
run: |
6868
echo Version: ${{ steps.extract_docver.outputs.docver }}
6969
docker exec ndts /bin/bash -c "git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'"
@@ -76,7 +76,7 @@ jobs:
7676
docker exec --user root ndts /bin/bash -c "rm -rf build build_tools *.h5 src test"
7777
7878
- name: Deploy documentation
79-
if: (github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/heads/docs_')) && matrix.os == 'debian12'
79+
if: (github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/heads/docs_')) && matrix.os == 'debian13'
8080
uses: s0/git-publish-subdir-action@develop
8181
env:
8282
REPO: self
@@ -88,28 +88,3 @@ jobs:
8888
- name: Stop the docker
8989
run: docker container stop ndts
9090

91-
python2_tests:
92-
runs-on: ubuntu-latest
93-
strategy:
94-
matrix:
95-
os: [debian10]
96-
steps:
97-
- uses: actions/checkout@v2
98-
- uses: actions/setup-python@v2
99-
100-
- name: Build the docker
101-
env:
102-
OS: ${{ matrix.os }}
103-
run: docker build -t ndts .ci/${OS}_py2
104-
105-
- name: Run the docker
106-
run: docker run --name ndts -d -it -v `pwd`:/home/tango ndts
107-
108-
- name: install python-pninexus
109-
run: .ci/install.sh 2
110-
111-
- name: run tests
112-
run: .ci/run.sh 2
113-
114-
- name: Stop the docker
115-
run: docker container stop ndts

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ For Python3 just replace python with python3 in the above instructions.
7878
Debian and Ubuntu packages
7979
~~~~~~~~~~~~~~~~~~~~~~~~~~
8080

81-
Debian ``bookworm``, ``bullseye``, ``buster`` or Ubuntu ``oracular``,
81+
Debian ``trixie``, ``bookworm``, ``bullseye`` or Ubuntu ``plucky``,
8282
``noble``, ``jammy`` packages can be found in the HDRI repository.
8383

8484
To install the debian packages, add the PGP repository key
@@ -89,12 +89,12 @@ To install the debian packages, add the PGP repository key
8989
$ curl -s http://repos.pni-hdri.de/debian_repo.pub.gpg | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/debian-hdri-repo.gpg --import
9090
$ chmod 644 /etc/apt/trusted.gpg.d/debian-hdri-repo.gpg
9191

92-
and then download the corresponding source list, e.g. for ``bookworm``
92+
and then download the corresponding source list, e.g. for ``trixie``
9393

9494
::
9595

9696
$ cd /etc/apt/sources.list.d
97-
$ wget http://repos.pni-hdri.de/bookworm-pni-hdri.list
97+
$ wget http://repos.pni-hdri.de/trixie-pni-hdri.list
9898

9999
or ``noble``
100100

doc/sphinx/installation.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,19 +66,19 @@ keyring
6666
The return value of this command line should be `OK`.
6767
In a next step you have to add new package sources to your system. For this
6868
purpose go to :file:`/etc/apt/sources.list.d` and download the sources file.
69-
For Debian (Bookworm) use
69+
For Debian (Trixie) use
7070

7171
.. code-block:: bash
7272
73-
$ wget http://repos.pni-hdri.de/bookworm-hdri.list
73+
$ wget http://repos.pni-hdri.de/trixie-hdri.list
7474
75-
and for Ubuntu (Jammy)
75+
and for Ubuntu (Noble)
7676

7777
.. code-block:: bash
7878
79-
$ wget http://repos.pni-hdri.de/jammy-pni-hdri.list
79+
$ wget http://repos.pni-hdri.de/noble-pni-hdri.list
8080
81-
Similarly, proceed for Bookworm, Bullseye, Buster, Lunar, Jammy, Focal.
81+
Similarly, proceed for Trixie, Bookworm, Bullseye, Plucky, Jammy.
8282
Once you have downloaded the file use
8383

8484
.. code-block:: bash

0 commit comments

Comments
 (0)