Skip to content

Commit

Permalink
Add GitHub workflow
Browse files Browse the repository at this point in the history
Verify all JSON-openPMD files written by testing against the schema
  • Loading branch information
franzpoeschel committed May 21, 2024
1 parent 5785947 commit 3e1dbac
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ jobs:
- name: Install
run: |
sudo apt-get update
sudo apt-get install g++ libopenmpi-dev libhdf5-openmpi-dev python3 python3-numpy python3-mpi4py python3-pandas
sudo apt-get install g++ libopenmpi-dev libhdf5-openmpi-dev python3 python3-numpy python3-mpi4py python3-pandas python3-pip
# TODO ADIOS2
- name: Build
env: {CXXFLAGS: -Werror, PKG_CONFIG_PATH: /usr/lib/x86_64-linux-gnu/pkgconfig}
Expand All @@ -260,6 +260,22 @@ jobs:
cd build
ctest --output-on-failure
python3 -m pip install jsonschema
cd share/openPMD/json_schema
PATH="../../../build/bin:$PATH" make -j 2
# We need to exclude the thetaMode example since that has a different
# meshesPath and the JSON schema needs to hardcode that.
find ../../../build/samples/ \
! -path '*thetaMode*' \
! -path '/*many_iterations/*' \
! -name 'profiling.json' \
! -name '*config.json' \
-iname '*.json' \
| while read i; do
echo "Checking $i"
./check.py "$i"
done
musllinux_py10:
runs-on: ubuntu-20.04
if: github.event.pull_request.draft == false
Expand Down

0 comments on commit 3e1dbac

Please sign in to comment.