Skip to content

Commit 9679dcb

Browse files
authored
Add Homebrew and conda envs (#16)
1 parent a095fbb commit 9679dcb

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

.github/workflows/pr-check.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,20 @@ jobs:
4949
with:
5050
python-version: "3.x"
5151

52+
- name: Homebrew Python
53+
if: startsWith( matrix.os, 'macos')
54+
run: brew install python
55+
shell: bash
56+
57+
- name: Add Conda to PATH
58+
if: startsWith( matrix.os, 'windows')
59+
run: |
60+
$path = $env:PATH + ";" + $env:CONDA + "\condabin"
61+
echo "PATH=$path" >> $env:GITHUB_ENV
62+
5263
- name: Add Conda to PATH
53-
if: startsWith( matrix.os, 'windows') || startsWith( matrix.os, 'ubuntu')
54-
run: echo "PATH=$PATH;$CONDA/condabin" >> $GITHUB_ENV
64+
if: startsWith( matrix.os, 'ubuntu')
65+
run: echo "PATH=$PATH:$CONDA/condabin" >> $GITHUB_ENV
5566
shell: bash
5667

5768
- name: Install Conda + add to PATH
@@ -110,15 +121,15 @@ jobs:
110121
if: startsWith( matrix.os, 'ubuntu') || startsWith( matrix.os, 'macos')
111122
run: |
112123
pyenv install --list
113-
pyenv install 3.12.3 3.11.9 3.10.14 3.9.19 3.8.19
124+
pyenv install 3.12.3 3.8.19
114125
shell: bash
115126

116127
# pyenv-win install list has not updated for a while
117128
- name: Install Pyenv Python(s)
118129
if: startsWith( matrix.os, 'windows')
119130
run: |
120131
pyenv install --list
121-
pyenv install 3.10.5 3.9.13 3.8.10
132+
pyenv install 3.10.5 3.8.10
122133
shell: bash
123134

124135
- name: Rust Tool Chain setup

0 commit comments

Comments
 (0)