matthewrmshin / conda-action

Use of Conda in a container-based action

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Use of Conda in a container-based action

License:MIT License


Languages

Language:Dockerfile 57.3%Language:Shell 31.2%Language:Python 11.5%