Skip to content

Commit

Permalink
Merge pull request #2203 from djhoese/ci-fix-glibc-preload
Browse files Browse the repository at this point in the history
Fix experimental dependency stdlibc++ issues in CI
  • Loading branch information
mraspaud committed Sep 21, 2022
2 parents df66bce + fe8951a commit 8c1ccdd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yaml
Expand Up @@ -86,6 +86,8 @@ jobs:
- name: Install unstable dependencies
if: matrix.experimental == true
shell: bash -l {0}
# We must get LD_PRELOAD for stdlibc++ or else the manylinux wheels
# may break the conda-forge libraries trying to use newer glibc versions
run: |
python -m pip install \
--index-url https://pypi.anaconda.org/scipy-wheels-nightly/simple/ \
Expand All @@ -105,6 +107,8 @@ jobs:
git+https://github.com/pydata/bottleneck \
git+https://github.com/pydata/xarray \
git+https://github.com/astropy/astropy;
LD_PRELOAD=$(python -c "import sys; print(sys.prefix)")/lib/libstdc++.so
echo "LD_PRELOAD=${LD_PRELOAD}" >> $GITHUB_ENV
- name: Install satpy
shell: bash -l {0}
Expand All @@ -114,6 +118,7 @@ jobs:
- name: Run unit tests
shell: bash -l {0}
run: |
export LD_PRELOAD=${{ env.LD_PRELOAD }};
pytest --cov=satpy satpy/tests --cov-report=xml --cov-report=
- name: Upload unittest coverage to Codecov
Expand All @@ -133,6 +138,7 @@ jobs:
- name: Run behaviour tests
shell: bash -l {0}
run: |
export LD_PRELOAD=${{ env.LD_PRELOAD }};
coverage run --source=satpy -m behave satpy/tests/features --tags=-download
coverage xml
Expand Down

0 comments on commit 8c1ccdd

Please sign in to comment.