Skip to content

Example 3: Other options #1553

Example 3: Other options

Example 3: Other options #1553

Workflow file for this run

name: "Example 3: Other options"
on:
pull_request:
branches:
- "*"
push:
branches:
- "develop"
- "main"
- "master"
schedule:
# Note that cronjobs run on master/main by default
- cron: "0 0 * * *"
jobs:
example-3:
# prevent cronjobs from running on forks
if:
(github.event_name == 'schedule' && github.repository ==
'conda-incubator/setup-miniconda') || (github.event_name != 'schedule')
name: Ex3 Linux
runs-on: "ubuntu-latest"
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v2
- uses: ./
with:
activate-environment: anaconda-client-env
environment-file: etc/example-environment.yml
python-version: 3.8
condarc-file: etc/example-condarc.yml
auto-activate-base: false
auto-update-conda: true
- run: |
conda info
conda list
printenv | sort
example-3-no-name:
name: Ex3-no-name Linux
runs-on: "ubuntu-latest"
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v2
- uses: ./
with:
activate-environment: anaconda-client-env
environment-file: etc/example-environment-no-name.yml
python-version: 3.8
condarc-file: etc/example-condarc.yml
auto-activate-base: false
auto-update-conda: true
- run: |
conda info
conda list
printenv | sort