Skip to content

Example 7: Explicit Environment Specification #1787

Example 7: Explicit Environment Specification

Example 7: Explicit Environment Specification #1787

Workflow file for this run

name: "Example 7: Explicit Environment Specification"
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-7:
# prevent cronjobs from running on forks
if:
(github.event_name == 'schedule' && github.repository ==
'conda-incubator/setup-miniconda') || (github.event_name != 'schedule')
name: Ex7 Explicit
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -el {0}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: ./
with:
auto-update-conda: false
activate-environment: explicit-env
environment-file: etc/example-explicit.${{ runner.os }}.conda.lock
- run: |
conda info
conda list
conda config --show-sources
conda config --show
printenv | sort