From a161f399b0a8563b009f5aa9978562c059b6dfd5 Mon Sep 17 00:00:00 2001 From: Martin Larralde Date: Fri, 10 Jan 2025 14:40:38 +0100 Subject: [PATCH] Fix tests on MacOS failing in `test.yml` Actions workflow --- .github/workflows/test.yml | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cc0ee67..19b7407 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -111,7 +111,6 @@ jobs: runs-on: macos-latest env: OS: OSX - _PYTHON_HOST_PLATFORM: macosx-10.9-x86_64 strategy: matrix: include: @@ -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