Skip to content

Commit

Permalink
Merge 3236e58 into e2df1b9
Browse files Browse the repository at this point in the history
  • Loading branch information
Moritz-Alexander-Kern committed Jan 25, 2024
2 parents e2df1b9 + 3236e58 commit e7ad250
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ jobs:
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
mamba-version: "*"
channels: conda-forge,defaults
channel-priority: true
activate-environment: elephant
environment-file: requirements/environment-tests.yml
auto-activate-base: false
Expand All @@ -152,10 +155,9 @@ jobs:
shell: bash -l {0}
run: |
python --version
conda env list
conda install mpi4py openmpi
conda install pytest
conda install pytest-cov coveralls
mamba install mpi4py openmpi
mamba install pytest
mamba install pytest-cov coveralls
pip install -e .[extras]
- name: List packages
Expand Down Expand Up @@ -379,11 +381,6 @@ jobs:

- uses: actions/checkout@v3

- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Cache pip
uses: actions/cache@v3
with:
Expand All @@ -392,15 +389,22 @@ jobs:
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements-docs.txt') }}-${{ hashFiles('**/requirements-tutorials.txt') }}-${{ hashFiles('**/environment-docs.yml') }}
-${{ hashFiles('**/CI.yml') }}-${{ steps.date.outputs.date }}

- uses: conda-incubator/setup-miniconda@3b0f2504dd76ef23b6d31f291f4913fb60ab5ff3 # corresponds to v2.2.0
with:
auto-update-conda: true
python-version: 3.9
activate-environment: elephant
environment-file: requirements/environment.yml
auto-activate-base: false
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!

- name: Install dependencies
shell: bash -l {0}
run: |
conda config --add channels conda-forge # bugfix with scipy==1.8.1: libstdcxx-ng 12.1.0 required
sudo apt-get update
sudo apt install -y libopenmpi-dev openmpi-bin
conda update conda
conda install -c conda-forge openmpi pandoc libstdcxx-ng # fix libstdc++.so.6: version for new scipy versions > 1.9.1
conda env update --file requirements/environment-docs.yml --name base
activate base
conda install -c conda-forge openmpi pandoc
python -m pip install --upgrade pip
pip install -r requirements/requirements-docs.txt
pip install -r requirements/requirements-tutorials.txt
Expand All @@ -409,15 +413,15 @@ jobs:
sed -i -E "s/nbsphinx_execute *=.*/nbsphinx_execute = 'always'/g" doc/conf.py
- name: List packages
shell: bash -l {0}
run: |
activate base
pip list
conda list
python --version
- name: make html
shell: bash -l {0}
run: |
activate base
cd doc
make html
Expand Down

0 comments on commit e7ad250

Please sign in to comment.