Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 66c96e9

Browse files
test package using miniconda
1 parent 7fd1a0e commit 66c96e9

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

.github/workflows/python-package.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,23 @@ jobs:
7373
shell: cmd
7474
run: |
7575
curl -o miniconda.exe https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe
76-
start /wait "" miniconda.exe /InstallationType=JustMe /AddToPath=1 /RegisterPython=0 /S /D=%UserProfile%\Miniconda
77-
echo %UserProfile%\Miniconda >> %GITHUB_PATH%
76+
start /wait "" miniconda.exe /InstallationType=JustMe /AddToPath=1 /RegisterPython=0 /S /D=Miniconda
77+
echo Miniconda >> %GITHUB_PATH%
78+
- name: Install dependencies Windows
79+
if: runner.os == 'windows'
80+
run: |
81+
Miniconda\_conda.exe init
82+
conda create -y -n ${{env.MODEL_NAME}} python=3.11
83+
84+
conda activate ${{env.MODEL_NAME}}
85+
python -m pip install --upgrade pip
86+
python -m pip install -r ${{env.MODEL_DIR}}/requirements.cuda.txt
7887
79-
- name: Install dependencies Windows and Linux
80-
if: runner.os == 'windows' || runner.os == 'linux'
88+
- name: Install dependencies Linux
89+
if: runner.os == 'linux'
8190
run: |
8291
conda create -y -n ${{env.MODEL_NAME}} python=3.11
92+
conda init
8393
conda activate ${{env.MODEL_NAME}}
8494
python -m pip install --upgrade pip
8595
python -m pip install -r ${{env.MODEL_DIR}}/requirements.cuda.txt
@@ -88,6 +98,7 @@ jobs:
8898
if: runner.os == 'macOS'
8999
run: |
90100
conda create -y -n ${{env.MODEL_NAME}} python=3.11
101+
conda init
91102
conda activate ${{env.MODEL_NAME}}
92103
python -m pip install --upgrade pip
93104
python -m pip install -r ${{env.MODEL_DIR}}/requirements.txt

0 commit comments

Comments
 (0)