Skip to content

Commit fae4a84

Browse files
committed
Fix package.yml workflow not updating setuptools before testing wheels
1 parent 072af0d commit fae4a84

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/package.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ jobs:
2525
pyo3-python: /opt/python/cp310-cp310/bin/python
2626
- python-version: pypy-3.7
2727
pyo3-python: /opt/python/pp37-pypy37_pp73/bin/python
28+
- python-version: pypy-3.8
29+
pyo3-python: /opt/python/pp38-pypy38_pp73/bin/python
30+
- python-version: pypy-3.9
31+
pyo3-python: /opt/python/pp39-pypy39_pp73/bin/python
2832
steps:
2933
- name: Checkout code
3034
uses: actions/checkout@v2
@@ -72,8 +76,10 @@ jobs:
7276
with:
7377
name: dist
7478
path: dist
79+
- name: Update pip
80+
run: python -m pip install -U pip wheel setuptools
7581
- name: Install built wheel
76-
run: python -m pip install --no-index --find-links=dist pyfastani
82+
run: python -m pip install --only-binary pyfastani --find-links=dist pyfastani
7783
- name: Run tests without coverage
7884
run: python -m unittest pyfastani.tests -vv
7985

@@ -136,8 +142,10 @@ jobs:
136142
with:
137143
name: dist
138144
path: dist
145+
- name: Update pip
146+
run: python -m pip install -U pip wheel setuptools
139147
- name: Install built wheel
140-
run: python -m pip install --no-index --find-links=dist pyfastani
148+
run: python -m pip install --only-binary pyfastani --find-links=dist pyfastani
141149
- name: Run tests without coverage
142150
run: python -m unittest pyfastani.tests -vv
143151

@@ -241,7 +249,7 @@ jobs:
241249
path: dist/
242250
- name: Update pip to latest version
243251
run: python -m pip install -U pip setuptools wheel
244-
- name: Install built wheel
252+
- name: Install source distribution
245253
run: python -m pip install --no-binary pyfastani --find-links=dist pyfastani
246254
- name: Run tests without coverage
247255
run: python -m unittest pyfastani.tests -vv

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ def get_source_files(self):
176176

177177
def _check_function(self, funcname, header, args="()"):
178178
print('checking whether function', repr(funcname), 'is available', end="... ", file=sys.stderr)
179+
self.mkpath(self.build_temp)
179180

180181
base = "have_{}".format(funcname)
181182
testfile = os.path.join(self.build_temp, "{}.c".format(base))

0 commit comments

Comments
 (0)