Switched to conda from pip in gh-pages Action since pandoc is not on pip
@@ -9,18 +9,42 @@ jobs:
deploy-docs:
runs-on: ubuntu-latest
+ defaults:
+ run:
+ shell: bash -l {0}
+
steps:
- uses: actions/checkout@v2
+ - name: Set up Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v2
+ with:
+ python-version: ${{ matrix.python-version }}
- # Install dependencies
- - name: Set up Python 3.8
- uses: actions/setup-python@v1
+ - name: Cache conda
+ uses: actions/cache@v2
+ env:
+ CACHE_NUMBER: 0 # increase value -> force reset cache
with:
+ path: ~/conda_pkgs_dir
+ key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('**/conda_requirements.txt') }}
+
+ - name: Set up conda/mamba
+ uses: conda-incubator/setup-miniconda@v2
+ with:
+ mamba-version: "*"
+ allow-softlinks: true
+ use-only-tar-bz2: true
+ show-channel-urls: false
+ auto-activate-base: true
+ channel-priority: flexible
+ channels: conda-forge,defaults
+ condarc-file: requirements/.condarc
python-version: 3.8
- - name: Install dependencies
+ - name: Install dependencies (conda)
run: |
- pip install -r requirements/doc_requirements.txt
+ mamba install --file requirements/doc_requirements.txt
+
# Build the documentation
- name: Build the documentation
run: |
