Skip to content

Commit

Permalink
attempt to have zeo++ workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sintef committed Mar 7, 2025
1 parent 137c6e2 commit 2e0fedc
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,28 @@ jobs:
- name: Install uv
uses: astral-sh/setup-uv@v4

- name: Install ZEO++ (Linux and macOS)
if: matrix.config.os == 'ubuntu-latest' || matrix.config.os == 'macos-latest'
run: |
# Download and extract ZEO++
wget -q http://www.zeoplusplus.org/zeo++-0.3.tar.gz
tar -xzf zeo++-0.3.tar.gz
# Compile Voro++ library first
cd zeo++-0.3/voro++/src
make
# Add Voro++ to PATH
echo "$(pwd)" >> $GITHUB_PATH
# Compile ZEO++
cd ../../
make
# Add ZEO++ to PATH
echo "$(pwd)" >> $GITHUB_PATH
- name: Install pymatgen and dependencies via uv
run: |
micromamba activate pmg
Expand Down Expand Up @@ -110,6 +132,12 @@ jobs:
PMG_TEST_FILES_DIR: "${{ github.workspace }}/tests/files"
run: |
micromamba activate pmg
# Print environment info and if ZEO++ is available
if [ "${{ matrix.config.os }}" == "ubuntu-latest" ] || [ "${{ matrix.config.os }}" == "macos-latest" ]; then
which network || echo "ZEO++ not found in PATH"
python -c "try: import zeo; print('ZEO++ Python module found'); except ImportError: print('ZEO++ Python module not found')"
fi
pytest --splits 10 --group ${{ matrix.split }} --durations-path tests/files/.pytest-split-durations tests
trigger_atomate2_ci:
Expand Down

0 comments on commit 2e0fedc

Please sign in to comment.