-
Notifications
You must be signed in to change notification settings - Fork 2
Test activate on windows #6
base: master
Are you sure you want to change the base?
Conversation
.github/workflows/test.yml
Outdated
- name: Run conda list | ||
run: conda list | ||
- name: init pwsh | ||
run: conda init powershell |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think conda init powershell
only initialises the old powershell (v5) and not he new pwsh
. Worth a try at least.
See also: #4 (comment)
Co-authored-by: Dave Hirschfeld <[email protected]>
Thanks @dhirschfeld! |
Co-authored-by: Dave Hirschfeld <[email protected]>
Co-authored-by: Dave Hirschfeld <[email protected]>
That's good news - it passed the first step. Now we just need to fix the others... |
.github/workflows/test.yml
Outdated
conda env list | ||
echo "$env:path" | ||
- name: Install stuff | ||
run: conda activate base && mamba install -y -c conda-forge xtensor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
run: conda activate base && mamba install -y -c conda-forge xtensor | |
shell: powershell | |
run: | | |
conda activate base | |
mamba install -y -c conda-forge xtensor |
.github/workflows/test.yml
Outdated
- name: Install Notebook and widgets | ||
run: mamba install -y -c notebook ipywidgets | ||
run: mamba install -y -c conda-forge notebook ipywidgets |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
run: mamba install -y -c conda-forge notebook ipywidgets | |
shell: powershell | |
run: | | |
conda activate base | |
mamba install -y -c conda-forge notebook ipywidgets |
But don't we want to have this in the action itself? So the users of the action don't need to explicitly activate the environment? |
.github/workflows/test.yml
Outdated
- name: Install Notebook and widgets | ||
run: mamba install -y -c notebook ipywidgets | ||
run: mamba install -y -c conda-forge notebook ipywidgets | ||
- name: List the packages | ||
run: mamba list |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
run: mamba list | |
shell: powershell | |
run: | | |
conda activate base | |
mamba list |
I'm not entirely sure the repeated activation is necessary but I figure it's easiest to get something working then take out what isn't needed. |
I think
|
Also, to not have to set |
It looks like that could do the trick 👍 |
I didn't see all the new comments and modified stuff to use |
I had a play around in #7 but didn't get to the bottom of it :( Note that the This caused me some confusion when I thought the When I instrument the script with
...which is quite strange because When I tried with I don't know why version would work and not install? I suspect maybe version doesn't hit any C++ code whereas install does? I not too sure how you could debug further short of exec'ing into the container and trying out the mamba command to see what actually does happen. |
Attempt at fixing #4.