From 9044911a3da422791e314e49ad350f5ec07b8478 Mon Sep 17 00:00:00 2001 From: Jan8be Date: Wed, 30 Oct 2024 16:06:27 +0100 Subject: [PATCH] macOS tests --- .github/workflows/ci.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 18f161d..9e14ea1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,8 +26,7 @@ jobs: - name: Install dependencies on macOS if: startsWith(matrix.os, 'macos') run: | - python3 -m venv ${PYTHON_VENV_ROOT} - source ${PYTHON_VENV_ROOT}/bin/activate + conda activate test python --version python3 -m pip install pip --upgrade python3 -m pip install pytest pytest-cov @@ -44,10 +43,8 @@ jobs: - name: Run tests on ${{ matrix.os }} if: startsWith(matrix.os, 'ubuntu') || startsWith(matrix.os, 'macos') run: | - if [ "$RUNNER_OS" == "macOS" ]; then - python3 -m venv ${PYTHON_VENV_ROOT} - source ${PYTHON_VENV_ROOT}/bin/activate - fi + conda activate test + python --version echo -e "Running tests" pytest tests/*.py