Skip to content

Example 3: Other options #2012

Example 3: Other options

Example 3: Other options #2012

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 * * *"
concurrency:
group:
${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
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}
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- 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}
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- 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