|
|
|
@@ -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 |
|
|
|
conda run -n learnware pytest tests/test_workflow/test_workflow.py |