Skip to content

Commit 4996edc

Browse files
committed
Add wheel installation step to CI workflow and update cache creation logic
1 parent c318116 commit 4996edc

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/pr.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ jobs:
7272
with:
7373
path: ~/.planemo
7474
key: planemo_cache_py_${{ matrix.python-version }}_gxy_${{ steps.get-galaxy-sha.outputs.galaxy-head-sha }}
75+
# Install the `wheel` package so that when installing other packages which
76+
# are not available as wheels, pip will build a wheel for them, which can be cached.
77+
- name: Install wheel
78+
run: pip install wheel
7579
- name: Update galaxy packages to match tested Galaxy version
7680
run: |
7781
base="git+https://github.com/${{ env.GALAXY_FORK }}/galaxy.git@${{ env.GALAXY_BRANCH }}#subdirectory=packages"
@@ -86,7 +90,7 @@ jobs:
8690
uses: galaxyproject/planemo-ci-action@v1
8791
id: discover
8892
with:
89-
create-cache: ${{ steps.cache-planemo.outputs.cache-hit != 'true' }}
93+
create-cache: ${{ steps.cache-pip.outputs.cache-hit != 'true' || steps.cache-planemo.outputs.cache-hit != 'true' }}
9094
galaxy-fork: ${{ env.GALAXY_FORK }}
9195
galaxy-branch: ${{ env.GALAXY_BRANCH }}
9296
max-chunks: ${{ env.MAX_CHUNKS }}

0 commit comments

Comments
 (0)