Skip to content
This repository has been archived by the owner on Dec 17, 2019. It is now read-only.

matthewrmshin/conda-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Actions status

Conda-Action

This action runs a container from Ubuntu with Miniconda3 installed. It creates and activates a Conda environment --prefix="${HOME}/myenv". You can update the environment with your project's requirement file, and run your logic in the Conda environment for subsequent steps in the job.

Example usage

jobs:
  build-and-run:
    steps:
    - uses: actions/checkout@v1
    - name: Update Conda environment with "requirements.yml"
      uses: matthewrmshin/conda-action@v1
      with:
        args: conda env update -f ./requirements.yml
    - name: Run "pytest" with the Conda environment
      uses: matthewrmshin/conda-action@v1
      with:
        args: pytest