Skip to content

Commit

Permalink
[CI] Make h5py optional for some builds
Browse files Browse the repository at this point in the history
PyPI packages are not always available for the most recent Python version
on all platforms.
  • Loading branch information
speth committed Nov 20, 2022
1 parent 8c7b2d4 commit 264a148
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/main.yml
Expand Up @@ -132,7 +132,10 @@ jobs:
- name: Upgrade pip
run: $PYTHON_CMD -m pip install -U pip 'setuptools>=47.0.0,<48' wheel
- name: Install Python dependencies
run: $PYTHON_CMD -m pip install ruamel.yaml numpy cython h5py pandas pytest pytest-github-actions-annotate-failures
# h5py is optional; may fail if no wheel is present for a given OS/Python version
run: |
$PYTHON_CMD -m pip install ruamel.yaml numpy cython pandas pytest pytest-github-actions-annotate-failures
$PYTHON_CMD -m pip install h5py || true
- name: Install Python dependencies for GH Python
if: matrix.python-version == '3.11'
run:
Expand Down Expand Up @@ -340,7 +343,9 @@ jobs:
- name: Upgrade pip
run: python3 -m pip install -U pip setuptools wheel
- name: Install Python dependencies
run: python3 -m pip install ruamel.yaml scons numpy cython h5py pandas matplotlib scipy
run: |
python3 -m pip install ruamel.yaml scons numpy cython pandas matplotlib scipy
python3 -m pip install h5py || true
- name: Build Cantera
# compile with GCC 9.4.0 on ubuntu-20.04 as an alternative to the default
# (GCC 7.5.0 is both default and oldest supported version)
Expand Down

0 comments on commit 264a148

Please sign in to comment.