Bump mamba-org/setup-micromamba from 1 to 2 #445
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: pytest (conda) | |
| on: [push, pull_request] | |
| jobs: | |
| test: | |
| name: Test | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| python-version: ['3.11', '3.10', '3.9', '3.8', '3.7'] | |
| runs-on: ${{ matrix.os }} | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Substitute Python version | |
| run: | | |
| perl -i -spwe 's/^ *- python=\K.+$/$pyver/' -- \ | |
| -pyver=${{ matrix.python-version }} environment.yml | |
| - name: Set up micromamba | |
| uses: mamba-org/setup-micromamba@v2 | |
| with: | |
| environment-file: environment.yml | |
| - name: Run all tests | |
| run: pytest --doctest-modules | |
| timeout-minutes: 2 |