Skip to content

trial and error

trial and error #232

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: pism-ragis
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: '2.0.2-2' # any version from https://github.com/mamba-org/micromamba-releases
generate-run-shell: true
environment-file: environment.yml
- name: Import numpy in micromamba environment (bash)
run: python -c "import numpy"
shell: bash -el {0}
- name: Import numpy in micromamba environment (pwsh)
run: python -c "import numpy"
shell: pwsh
- name: Run custom command in micromamba environment
run: pytest --version
shell: micromamba-shell {0}