Skip to content

Commit 48749ba

Browse files
committed
Fix release workflow to test the right wheels
1 parent f07f108 commit 48749ba

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

.github/workflows/release.yml

+16-2
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,18 @@ jobs:
8787
fetch-depth: 50
8888
submodules: true
8989

90+
- uses: actions/download-artifact@v1
91+
with:
92+
name: dist
93+
path: dist/
94+
95+
- name: Extract Release Version
96+
id: relver
97+
run: |
98+
set -e
99+
echo ::set-output name=version::$(cat dist/VERSION)
100+
rm dist/*
101+
90102
- name: Set up Python ${{ matrix.python-version }}
91103
uses: actions/setup-python@v1
92104
with:
@@ -114,9 +126,11 @@ jobs:
114126
if: |
115127
!startsWith(matrix.os, 'windows')
116128
&& !contains(github.event.pull_request.labels.*.name, 'skip wheel tests')
129+
env:
130+
OS: ${{ matrix.os }}
131+
PKG_VERSION: ${{ steps.relver.outputs.version }}
117132
run: |
118-
pip install --pre httptools -f "file:///${GITHUB_WORKSPACE}/dist"
119-
make -C "${GITHUB_WORKSPACE}" testinstalled
133+
"${GITHUB_WORKSPACE}/.github/workflows/test-wheels.sh"
120134
121135
- uses: actions/upload-artifact@v1
122136
with:

.github/workflows/test-wheels.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
set -Eexuo pipefail
4+
shopt -s nullglob
5+
6+
pip install -f "file:///${GITHUB_WORKSPACE}/dist" "httptools[test]==${PKG_VERSION}"
7+
make -C "${GITHUB_WORKSPACE}" testinstalled

0 commit comments

Comments
 (0)