ci: Try fixing unit test reports in ci.yml #6
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
| # Check if installation with conda/mamba works | |
| name: Install Test | |
| on: | |
| schedule: | |
| - cron: "0 6 * * *" | |
| workflow_dispatch: | |
| push: # TODO: Remove before merge! | |
| jobs: | |
| install-conda: | |
| name: Install from Conda | |
| timeout-minutes: 10 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12"] | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - | |
| name: Install with Mamba | |
| uses: mamba-org/setup-micromamba@v2 | |
| with: | |
| environment-name: climada_env_${{ matrix.python-version }} | |
| create-args: >- | |
| python=${{ matrix.python-version }} | |
| climada | |
| init-shell: bash powershell | |
| # Recompute environment for each run, but possibly use cached downloads | |
| cache-environment: false | |
| cache-downloads: true | |
| cache-downloads-key: downloads-${{ matrix.os }}-py${{ matrix.python-version }} | |
| - | |
| name: Import CLIMADA (bash) | |
| run: python -c "import climada" | |
| shell: bash -el {0} | |
| - | |
| name: Import CLIMADA (powershell) | |
| run: python -c "import climada" | |
| shell: pwsh | |
| if: ${{ matrix.os == 'windows-latest' }} |