Incompatible with conda-incubator/setup-miniconda@v2 GitHub Action
See original GitHub issueThis is a terrific tool and have used it successfully in the past to debug some complex scripts. Had to debug a problem build recently, but as soon as I connect to the build server (via url link or direct ssh in a separate terminal), the connection is terminated in less than 60 seconds. Not sure if others have experienced the same.
If it helps, here are the key config elements I am working with:
jobs:
build:
name: Build (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest"]
python-version: ["3.8"]
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
# https://github.com/marketplace/actions/setup-miniconda
with:
miniconda-version: "latest"
channels: conda-forge
auto-update-conda: true
python-version: 3.8
environment-file: environment.yml
...
# Debugging session
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:14
Top Results From Across the Web
conda-incubator/setup-miniconda - GitHub Action
conda -incubator/setup-miniconda. This action sets up a base conda environment by one of: locating the conda installation bundled with the available runners ...
Read more >Creating conda env failed with exit code null #262 - GitHub
My GitHub Action step looks like this: - name: Setup Conda uses: conda-incubator/setup-miniconda@v2.2.0 with: environment-f...
Read more >Example 9: Empty Channels in file dont crash setup - GitHub
Set up your GitHub Actions workflow with conda via miniconda - Example 9: Empty Channels in file dont crash setup · conda-incubator/setup-miniconda@059455a.
Read more >Weird conflict errors #22 - conda-incubator/condacolab - GitHub
I can't reproduce your case but found other issues. We are planning the implementation of a new approach that does not rely on...
Read more >Having troubles activating an environment · Issue #92 - GitHub
uses: conda-incubator/setup-miniconda@v2 with: environment-file: ... Yes, that action is not properly activating environments.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If I do
type -a tmate
after miniconda it fails with/home/runner/work/_temp/b2117145-5a5a-4545-8e3d-34690dd3eb68.sh: line 1: type: tmate: not found
I will try your other debugging steps in a bit.
@mxschmitt figured out the root cause:
This (along with other lines) will be appended to the user-wide Bash profile (i.e. to
~/.profile
, but also to~/.bash_profile
, just to make sure).The
-e
option, set viaset -eo pipefail
, is what is the bad thing here. It tells the Bash to exit whenever a command failed.