From ce4e23791ab2b6c29f60bf6eb0e4827769da71a6 Mon Sep 17 00:00:00 2001 From: Austin Orr Date: Sun, 5 May 2024 11:53:49 -0700 Subject: [PATCH] speed up tests not under coverage --- .github/workflows/hsp2-pip-install-test.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/hsp2-pip-install-test.yml b/.github/workflows/hsp2-pip-install-test.yml index b7c51e05..2b209a7f 100644 --- a/.github/workflows/hsp2-pip-install-test.yml +++ b/.github/workflows/hsp2-pip-install-test.yml @@ -38,6 +38,7 @@ jobs: include: - python-version: "3.11" pandas-version: "pandas>2.0" + coverage: true - python-version: "3.11" pandas-version: "pandas>1.5,<2.0" steps: @@ -51,12 +52,14 @@ jobs: run: | # install the hsp2 executable pip install .[dev] - - if: ${{ matrix.pandas-version }} + - if: matrix.pandas-version run: pip install "${{ matrix.pandas-version }}" - - name: Test with pytest + - if: matrix.coverage run: | # python coverage NUMBA_DISABLE_JIT=1 pytest --cov --cov-branch --cov-report term-missing + - if: ! matrix.coverage + run: pytest test-cmd: runs-on: ubuntu-latest