add pypi cache
@@ -460,6 +460,18 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
+
+ - name: Get pip cache dir
+ id: pip-cache
+ run: |
+ python -m pip install -U pip # to ensure version > 20 to have cache dir
+ echo "::set-output name=dir::$(pip cache dir)"
+ - name: Pip Cache
+ uses: actions/cache@v2
+ with:
+ path: ${{ steps.pip-cache.outputs.dir }}
+ key: pip-offline-install-bundles-${{ runner.os }}-${{ matrix.python-version }}-${{ steps.full-python-version.outputs.version }}
+
- name: Download Source Files and Build PyMedPhys Wheel
run: |
pip install wheel
