Skip to content

Commit

Permalink
Create conda.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandrosantanabonilla committed May 30, 2024
1 parent 2198d4c commit 51344d7
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/conda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: "Example 1: Basic usage"

on:
pull_request:
branches:
- "*"
push:
branches:
- "develop"
- "main"
- "master"
jobs:
example-1:
# prevent cronjobs from running on forks
if:
(github.event_name == 'schedule' && github.repository ==
'conda-incubator/setup-miniconda') || (github.event_name != 'schedule')
name: Ex1 (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.8", "3.11"]
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: ./
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- name: Conda info
shell: bash -el {0}
run: conda info
- name: Conda list
shell: pwsh
run: conda list
- name: Environment
shell: bash -el {0}
run: printenv | sort

0 comments on commit 51344d7

Please sign in to comment.