From ba1db5f427dbe77a0acf9f752826ec643996ff4c Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Fri, 22 Mar 2024 23:10:07 -0400 Subject: [PATCH 1/2] CI: Cache conda and pip packages --- .github/workflows/pythonpackage.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 47984d1..424de3b 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -64,6 +64,15 @@ jobs: steps: - uses: actions/checkout@v4 + - uses: actions/cache@v4 + with: + path: | + ~/conda_pkgs_dir + ~/.cache/pip + key: ${{ runner.os }}-conda-${{ matrix.python-version }}-${{ env.CACHE_NUMBER }} + env: + # Bump to reset cache + CACHE_NUMBER: 0 - name: Set up Python ${{ matrix.python-version }} uses: conda-incubator/setup-miniconda@v3 with: From 094a1746ae85452c8ecce09deec051341bcec8d2 Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Fri, 22 Mar 2024 23:22:42 -0400 Subject: [PATCH 2/2] CI: Test caching