This action tests anaconda environments, builds anaconda packages and pushes anaconda packages to anaconda cloud.
Optional The name of anaconda environment. Default "conda-env"
.
Optional The name of anaconda environment file. Default "environment.yml"
.
Optional Desired Python version to create a conda environment.
Optional Extra anaconda channels to use.
Optional Activate the new environment. Default "true"
.
Optional Enable package publishing.
Optional Channel to publish the anaconda package.
Optional Token to access to anaconda cloud.
The time the action was executed you.
Conda version used in the action.
Python version used in the action.
name: 'Anaconda Github Action'
on: [push]
jobs:
test_job:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
pythonVersion: [3.6, 3.7, 3.8]
exclude:
- os: macos-latest
pythonVersion: 3.8
- os: windows-latest
pythonVersion: 3.6
steps:
- uses: actions/checkout@v2
- name: Anaconda-Action
id: step1
uses: fdiblen/anaconda-action@0.1.7
with:
envFileName: 'environment.yml'
To test the action locally, you can use act.