Skip to content

Commit

Permalink
Fix tests on MacOS failing in test.yml Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
althonos committed Jan 10, 2025
1 parent 4ab2fda commit a161f39
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ jobs:
runs-on: macos-latest
env:
OS: OSX
_PYTHON_HOST_PLATFORM: macosx-10.9-x86_64
strategy:
matrix:
include:
Expand Down Expand Up @@ -152,27 +151,27 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Show Python build environment
run: arch -x86_64 python -m sysconfig
run: python -m sysconfig
- name: Update pip
run: python -m pip install -U pip wheel setuptools
- name: Install Python requirements
run: python -m pip install -r .github/workflows/requirements.txt
- name: Build C extension
run: arch -x86_64 pip install -vv -e . --no-build-isolation
run: pip install -vv -e . --no-build-isolation
- name: Install test requirements
run: python -m pip install -r src/pyhmmer/tests/requirements.txt
if: matrix.python-impl == 'CPython'
- name: Test with coverage
run: python -m coverage run -m unittest pyhmmer.tests -vv
- name: Upload to Codecov
uses: codecov/codecov-action@v4
if: matrix.python-impl == 'CPython'
with:
flags: ${{ matrix.python-release }}
env_vars: OS
name: test-python-${{ matrix.python-version }}
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}
codecov_curl_args: "--globoff"
verbose: true
- name: Test without coverage
run: python -m unittest pyhmmer.tests -vv
# - name: Upload to Codecov
# uses: codecov/codecov-action@v4
# if: matrix.python-impl == 'CPython'
# with:
# flags: ${{ matrix.python-release }}
# env_vars: OS
# name: test-python-${{ matrix.python-version }}
# fail_ci_if_error: false
# token: ${{ secrets.CODECOV_TOKEN }}
# codecov_curl_args: "--globoff"
# verbose: true

0 comments on commit a161f39

Please sign in to comment.