Skip to content

Commit

Permalink
Fix package.yml workflow not updating setuptools before testing w…
Browse files Browse the repository at this point in the history
…heels
  • Loading branch information
althonos committed Jul 17, 2022
1 parent 072af0d commit fae4a84
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ jobs:
pyo3-python: /opt/python/cp310-cp310/bin/python
- python-version: pypy-3.7
pyo3-python: /opt/python/pp37-pypy37_pp73/bin/python
- python-version: pypy-3.8
pyo3-python: /opt/python/pp38-pypy38_pp73/bin/python
- python-version: pypy-3.9
pyo3-python: /opt/python/pp39-pypy39_pp73/bin/python
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down Expand Up @@ -72,8 +76,10 @@ jobs:
with:
name: dist
path: dist
- name: Update pip
run: python -m pip install -U pip wheel setuptools
- name: Install built wheel
run: python -m pip install --no-index --find-links=dist pyfastani
run: python -m pip install --only-binary pyfastani --find-links=dist pyfastani
- name: Run tests without coverage
run: python -m unittest pyfastani.tests -vv

Expand Down Expand Up @@ -136,8 +142,10 @@ jobs:
with:
name: dist
path: dist
- name: Update pip
run: python -m pip install -U pip wheel setuptools
- name: Install built wheel
run: python -m pip install --no-index --find-links=dist pyfastani
run: python -m pip install --only-binary pyfastani --find-links=dist pyfastani
- name: Run tests without coverage
run: python -m unittest pyfastani.tests -vv

Expand Down Expand Up @@ -241,7 +249,7 @@ jobs:
path: dist/
- name: Update pip to latest version
run: python -m pip install -U pip setuptools wheel
- name: Install built wheel
- name: Install source distribution
run: python -m pip install --no-binary pyfastani --find-links=dist pyfastani
- name: Run tests without coverage
run: python -m unittest pyfastani.tests -vv
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ def get_source_files(self):

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

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

0 comments on commit fae4a84

Please sign in to comment.