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 Jun 26, 2023
1 parent 5fc0073 commit e99b0fb
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 @@ -239,7 +239,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 @@ -253,6 +253,22 @@ jobs:
cmake --build build --parallel 2
ctest --test-dir build --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 e99b0fb

Please sign in to comment.