Skip to content

Commit

Permalink
Disable caching of conda packages
Browse files Browse the repository at this point in the history
Use conda since it now runs libmamba. With the caching we couldn't the
latest GMT.
  • Loading branch information
leouieda committed Feb 7, 2024
1 parent 2af6720 commit e869a76
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
runs-on: ubuntu-latest
env:
REQUIREMENTS: env/requirements-docs.txt env/requirements-build.txt
PYTHON: 3.9
PYTHON: 3.10

steps:
# Cancel any previous run of the test job
Expand Down Expand Up @@ -65,11 +65,7 @@ jobs:
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ env.PYTHON }}
miniforge-variant: Mambaforge
use-mamba: true
channels: conda-forge,defaults
# Needed for caching
use-only-tar-bz2: true

- name: Collect requirements
run: |
Expand All @@ -89,17 +85,11 @@ jobs:
echo "Collected dependencies:"
cat requirements-full.txt
- name: Setup caching for conda packages
uses: actions/cache@v3
with:
path: ~/conda_pkgs_dir
key: conda-${{ runner.os }}-${{ env.PYTHON }}-${{ hashFiles('requirements-full.txt') }}

- name: Install requirements
run: mamba install --quiet --file requirements-full.txt python==$PYTHON
run: conda install --quiet --file requirements-full.txt python==$PYTHON

- name: List installed packages
run: mamba list
run: conda list

- name: Build source and wheel distributions
run: |
Expand Down

0 comments on commit e869a76

Please sign in to comment.