diff --git a/.github/workflow/test_learnware_with_pip.yaml b/.github/workflow/test_learnware_with_pip.yaml index 7995a87..18658a1 100644 --- a/.github/workflow/test_learnware_with_pip.yaml +++ b/.github/workflow/test_learnware_with_pip.yaml @@ -33,14 +33,15 @@ jobs: - name: Create conda env for macos run: | conda create -n learnware python=${{ matrix.python-version }} + conda create activate learnware - name: Update pip to the latest version run: | - conda run -n learnware python -m pip install --upgrade pip + python -m pip install --upgrade pip - name: Install learnware run: | - conda run -n learnware python -m pip install learnware + python -m pip install learnware - name: Install faiss for MacOS if: ${{ matrix.os == 'macos-11' || matrix.os == 'macos-latest' }} @@ -50,4 +51,4 @@ jobs: - name: Test workflow run: | conda install pytest - pytest tests/test_workflow/test_workflow.py \ No newline at end of file + conda run -n learnware pytest tests/test_workflow/test_workflow.py \ No newline at end of file diff --git a/.github/workflow/test_learnware_with_source.yaml b/.github/workflow/test_learnware_with_source.yaml index 55bd585..f855b11 100644 --- a/.github/workflow/test_learnware_with_source.yaml +++ b/.github/workflow/test_learnware_with_source.yaml @@ -33,14 +33,15 @@ jobs: - name: Create conda env for macos run: | conda create -n learnware python=${{ matrix.python-version }} + conda create activate learnware - name: Update pip to the latest version run: | - conda run -n learnware python -m pip install --upgrade pip + python -m pip install --upgrade pip - name: Install learnware run: | - conda run -n learnware python -m pip install . + python -m pip install . - name: Install faiss for MacOS if: ${{ matrix.os == 'macos-11' || matrix.os == 'macos-latest' }} @@ -50,4 +51,4 @@ jobs: - name: Test workflow run: | conda install pytest - pytest tests/test_workflow/test_workflow.py \ No newline at end of file + conda run -n learnware pytest tests/test_workflow/test_workflow.py \ No newline at end of file