Skip to content

Reduce frequency of dependabot autoupdates to quarterly (matching pre-commit) #2629

Reduce frequency of dependabot autoupdates to quarterly (matching pre-commit)

Reduce frequency of dependabot autoupdates to quarterly (matching pre-commit) #2629

Workflow file for this run

name: Unit test minimum dependencies
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
# When this workflow is queued, automatically cancel any previous running
# or pending jobs from the same branch
concurrency:
group: test-mindeps-${{ github.ref }}
cancel-in-progress: true
jobs:
test-mindeps:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout source
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
with:
enable-cache: true
- name: Set up Python
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
with:
python-version: "3.12"
- name: Install minimum-compatible dependencies
run: uv sync --resolution lowest-direct --group test
- name: Test
run: uv run pytest tests/unit --verbose --cov=earthaccess --cov=tests --cov-report=term-missing --capture=no --color=yes --tb=native --log-cli-level=INFO --ignore=tests/unit/test_virtual.py
- name: Upload coverage
# Don't upload coverage when using the `act` tool to run the workflow locally
if: ${{ !env.ACT }}
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0