Add harmony-py
as a dependency
#257
This file contains 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: "Unit test" | |
# NOTE: We're just skipping the tests requiring earthdata login here; we don't | |
# distinguish yet between unit and integration tests. | |
on: | |
pull_request: | |
push: | |
branches: | |
- "main" | |
- "development" | |
workflow_run: | |
workflows: [Update UML diagrams] | |
types: | |
- completed | |
jobs: | |
test: | |
name: "Unit test (Python ${{ matrix.python-version }})" | |
runs-on: "ubuntu-latest" | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.9", "3.12"] #NOTE: min and max Python versions supported by icepyx | |
steps: | |
- uses: "actions/checkout@v4" | |
with: | |
fetch-depth: 0 | |
- uses: "./.github/actions/install-icepyx" | |
with: | |
python-version: "${{ matrix.python-version }}" | |
- name: "Run tests" | |
run: | | |
pytest icepyx/ --verbose --cov app \ | |
--ignore=icepyx/tests/integration | |
- name: "Upload coverage report" | |
uses: "codecov/[email protected]" | |
with: | |
token: "${{ secrets.CODECOV_TOKEN }}" |