[MNT] Update version number #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test learnware with pip | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
timeout-minutes: 120 | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04] | |
python-version: [3.9] | |
steps: | |
- name: Test learnware from pip | |
uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Add conda to system path | |
run: | | |
# $CONDA is an environment variable pointing to the root of the miniconda directory | |
echo $CONDA/bin >> $GITHUB_PATH | |
- name: Create conda env for macos | |
run: | | |
conda create -n learnware python=${{ matrix.python-version }} | |
- name: Update pip to the latest version | |
run: | | |
conda run -n learnware python -m pip install --upgrade pip | |
conda run -n learnware python -m pip install pytest | |
- name: Install learnware | |
run: | | |
conda run -n learnware python -m pip install learnware[full] | |
- name: Test workflow | |
run: | | |
conda run -n learnware python -m pytest tests/test_workflow/test_hetero_workflow.py |