From 470a5d8bb4b2f9fa9a5a689c46d62121c80d9d89 Mon Sep 17 00:00:00 2001 From: Solomon Yu <797346+sqr00t@users.noreply.github.com> Date: Wed, 5 Jun 2024 16:25:22 +0100 Subject: [PATCH] fix(actions): add conda test env paths --- .github/workflows/test.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 19700f6..c5681ac 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -40,8 +40,8 @@ jobs: if: runner.os == 'macOS' run: | brew install coreutils direnv - $CONDA/bin/python -m pip install --upgrade pip - $CONDA/bin/python -m pip install -r requirements.txt + $CONDA/envs/test/bin/python -m pip install --upgrade pip + $CONDA/envs/test/bin/python -m pip install -r requirements.txt conda config --remove channels defaults conda config --add channels conda-forge conda config --add channels nodefaults @@ -55,8 +55,8 @@ jobs: if: runner.os == 'Linux' run: | sudo apt-get update -y && sudo apt-get install -y direnv - $CONDA/bin/python -m pip install --upgrade pip - $CONDA/bin/python -m pip install -r requirements.txt + $CONDA/envs/test/bin/python -m pip install --upgrade pip + $CONDA/envs/test/bin/python -m pip install -r requirements.txt conda config --remove channels defaults conda config --add channels conda-forge conda config --add channels nodefaults @@ -92,4 +92,4 @@ jobs: - name: Run pytest run: | - $CONDA/bin/python -m pytest -vvv + $CONDA/envs/test/bin/python -m pytest -vvv