Install wheel as part of examples Action, also added cache pip
@@ -27,13 +27,24 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- - name: Cache conda
+ - name: Cache pip
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') }}
+ # This path is specific to Ubuntu
+ path: ~/.cache/pip
+ # Look to see if there is a cache hit for the corresponding requirements file
+ key: ${{ runner.os }}-pip-${{ hashFiles('requirements/min_requirements_pip.txt') }}
+ restore-keys: |
+ ${{ runner.os }}-pip-
+ ${{ runner.os }}-
+
+ # - 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
@@ -65,6 +76,7 @@ jobs:
# TODO: once https://github.com/jerry-git/pytest-split/pull/10
# is merged, fix the custom pip install for pytest-split.
run: |
+ pip install wheel
pip install -r requirements/min_requirements_pip.txt
pip install git+https://github.com/ma-sadeghi/pytest-split.git@fix_ipynb_bug
# Install porespy from the checked-out branch
