Browse Source

[MNT] update install CI

tags/v0.3.2
bxdd 2 years ago
parent
commit
436dcb1be3
2 changed files with 8 additions and 6 deletions
  1. +4
    -3
      .github/workflow/test_learnware_with_pip.yaml
  2. +4
    -3
      .github/workflow/test_learnware_with_source.yaml

+ 4
- 3
.github/workflow/test_learnware_with_pip.yaml View File

@@ -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

+ 4
- 3
.github/workflow/test_learnware_with_source.yaml View File

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

Loading…
Cancel
Save