Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to use it with other github actions

See original GitHub issue

I tried to use this with an other github action that builds and checks sphinx documentation.

Of course it didn’t pick up the activated environment, so the build failed. I can get it working if I run the shell directly with shell: bash -l {0}.

But the sphinx-build action has some nice features which I like to use.

It does provide a way to run a pre build command. Can that be used to activate the conda-environment?

      - uses: ammaraskar/sphinx-action@master
          pre-build-command: ..XXXXXX...

I once did something similar in the gitlab ci system where I ran . /opt/conda/etc/profile.d/ && conda activate sphinx" to get the environment activated. Could I do something similar here?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

melundcommented, May 5, 2020

@goanpeca Thanks a lot. I had indeed the option of running a pre-command. I will try your suggestion.

goanpecacommented, May 4, 2020

@melund if you have the opportunity to run a command I think you can use something like:

eval "$(conda shell.bash hook)"; conda activate <env-name>;
Read more comments on GitHub >

github_iconTop Results From Across the Web

Finding and customizing actions - GitHub Docs
Adding an action from GitHub Marketplace · Navigate to the action you want to use in your workflow. · Under "Installation", click to...
Read more >
Reusing workflows - GitHub Docs
You call a reusable workflow by using the uses keyword. Unlike when you are using actions within a workflow, you call reusable workflows...
Read more >
GitHub Actions Documentation
Automate, customize, and execute your software development workflows right in your repository with GitHub Actions. You can discover, create, and share ...
Read more >
Understanding GitHub Actions
An action is a custom application for the GitHub Actions platform that performs a complex but frequently repeated task. Use an action to...
Read more >
Quickstart for GitHub Actions
Creating your first workflow · Create a .github/workflows directory in your repository on GitHub if this directory does not already exist. · In...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found