Skip to content

Run zizmor on changes to actions in the actions/ directory (#1413) #2622

Run zizmor on changes to actions in the actions/ directory (#1413)

Run zizmor on changes to actions in the actions/ directory (#1413) #2622

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@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v6
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
with:
enable-cache: true
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # 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