Bump version #88
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
| # https://github.com/marketplace/actions/setup-miniconda#example-6-mamba | |
| # https://github.com/bopen/xarray-sentinel/blob/main/.github/workflows/on-push.yml | |
| name: Test installation with pytest | |
| # Build on every branch push, tag push, and pull request change: | |
| on: [push, pull_request] | |
| jobs: | |
| test: | |
| name: Run tests with pytest | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install Conda environment with Micromamba | |
| uses: mamba-org/setup-micromamba@v2 | |
| with: | |
| environment-file: environment.yml | |
| environment-name: DEVELOP | |
| cache-environment: true | |
| cache-environment-key: ubuntu-latest-3.11 | |
| create-args: | | |
| python=3.11 | |
| - name: Install package | |
| run: | | |
| python -m pip install --no-deps -e . | |
| python -m pip install -r requirements-dev.txt | |
| - name: Run tests | |
| run: | | |
| pytest --doctest-modules -v sardem |