Skip to content

Commit

Permalink
cache packages
Browse files Browse the repository at this point in the history
  • Loading branch information
dugalh committed Jan 26, 2024
1 parent 473760c commit 9b96897
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/run-unit-tests_conda-forge.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Tests (conda-forge)
# TODO: use libmamba solver and cache packages

on:
# push:
# branches: [main, feature_pytest_click]
Expand All @@ -20,6 +20,18 @@ jobs:
python-version: ['3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v4 # for the test data

- name: Get Date
id: get-date
run: echo "week=$(/bin/date -u '+%Y%U')" >> $GITHUB_OUTPUT
shell: bash

- name: Cache conda
uses: actions/cache@v4
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-${{ steps.get-date.outputs.date }}-${{ hashFiles('pyproject.toml') }}

- uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
Expand All @@ -28,7 +40,7 @@ jobs:
activate-environment: test
auto-update-conda: true
conda-solver: libmamba
# miniforge-variant: Mambaforge

- name: Install dependencies
run: |
conda info
Expand Down

0 comments on commit 9b96897

Please sign in to comment.