Merge for v8.4 #2584
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: test_Maps | |
| on: | |
| pull_request: | |
| # to trigger workflow manually from actions-tab | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| # set operating systems to test | |
| os: [ubuntu-latest] | |
| # set python versions to test | |
| python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
| name: test_Maps ${{ matrix.os }} ${{ matrix.python-version }} | |
| steps: | |
| # checkout repository | |
| - uses: actions/checkout@v4 | |
| # install miniconda environment | |
| - uses: mamba-org/setup-micromamba@v1 | |
| with: | |
| environment-file: tests/test_env.yml | |
| init-shell: >- | |
| bash | |
| cache-environment: true | |
| post-cleanup: 'all' | |
| create-args: >- | |
| python=${{ matrix.python-version }} | |
| - name: Test Maps | |
| shell: bash -l {0} | |
| run: | | |
| pip install -e .[test] | |
| python -m pytest -v --cov=eomaps --cov-report=xml | |
| - name: Upload Image Comparison Artefacts | |
| if: ${{ failure() }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: code-coverage-report | |
| path: img_comparison_results | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| env_vars: ${{ matrix.os }}, ${{ matrix.python-version }} | |
| name: maps_coverage | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| fail_ci_if_error: true | |
| verbose: true |