Skip to content

Commit 9be0934

Browse files
authored
Merge pull request #118 from cisagov/improvement/install_test_dependencies_in_test-build_gha_job
Improve testing dependency installation in the `test-build` job
2 parents 8b589d1 + 22bce63 commit 9be0934

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -289,12 +289,14 @@ jobs:
289289
uses: actions/download-artifact@v3
290290
with:
291291
name: dist-${{ matrix.python-version }}
292-
- name: Install testing dependencies
293-
run: |
294-
python -m pip install --upgrade pip setuptools wheel
295-
python -m pip install --upgrade pytest pytest-cov
296-
- name: Install the built wheel (there should only be one)
297-
run: python -m pip install *.whl
292+
path: dist
293+
- id: find-wheel
294+
name: Get the name of the retrieved wheel (there should only be one)
295+
run: echo "wheel=$(ls dist/*whl)" >> $GITHUB_OUTPUT
296+
- name: Update core Python packages
297+
run: python -m pip install --upgrade pip setuptools wheel
298+
- name: Install the built wheel (along with testing dependencies)
299+
run: python -m pip install ${{ steps.find-wheel.outputs.wheel }}[test]
298300
- name: Run tests
299301
env:
300302
RELEASE_TAG: ${{ github.event.release.tag_name }}

0 commit comments

Comments
 (0)