Skip to content

Replace poetry with pip, build with hatchling, dynamically calculate minimum dependencies with uv #1696

Replace poetry with pip, build with hatchling, dynamically calculate minimum dependencies with uv

Replace poetry with pip, build with hatchling, dynamically calculate minimum dependencies with uv #1696

Workflow file for this run

name: Unit Tests
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize]
jobs:
unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-pkg
with:
python-version: ${{ matrix.python-version }}
- name: Typecheck
run: mypy
- name: Test
run: pytest tests/unit --cov=earthaccess --cov=tests --cov-report=term-missing --capture=no --tb=native --log-cli-level=INFO
- name: Upload coverage
# Don't upload coverage when using the `act` tool to run the workflow locally
if: ${{ !env.ACT }}
uses: codecov/codecov-action@v4