Merge pull request #180 from pyoceans/pre-commit-ci-update-config #307
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: Tests | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| jobs: | |
| run: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ] | |
| os: [ windows-latest, ubuntu-latest, macos-latest ] | |
| fail-fast: false | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Micromamba Python ${{ matrix.python-version }} | |
| uses: mamba-org/setup-micromamba@add3a49764cedee8ee24e82dfde87f5bc2914462 # v2.0.7 | |
| with: | |
| environment-name: TEST | |
| init-shell: bash | |
| create-args: >- | |
| python=${{ matrix.python-version }} | |
| --file requirements.txt | |
| --file requirements-dev.txt | |
| --channel conda-forge | |
| - name: Install library | |
| run: | | |
| python -m pip install -e . --no-deps --force-reinstall | |
| - name: Tests | |
| run: > | |
| python pocean/tests/download_test_data.py | |
| && python -m pytest --pyargs pocean |