forked from nsidc/earthaccess
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/nsidc/earthaccess into py-312
- Loading branch information
Showing
37 changed files
with
2,641 additions
and
1,905 deletions.
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# The ReadTheDocs preview link is "hidden" within the GitHub "Checks" | ||
# interface. For users who don't know this, finding the preview link may be | ||
# very difficult or frustrating. This workflow makes the link more | ||
# findable by updating PR descriptions to include it. | ||
name: "Add ReadTheDocs preview link to PR descriptions" | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
|
||
permissions: | ||
pull-requests: "write" | ||
|
||
jobs: | ||
autolink-rtd-previews: | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: "readthedocs/actions/preview@v1" | ||
with: | ||
project-slug: "earthaccess" |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Lint and Format with Ruff | ||
|
||
on: push | ||
|
||
jobs: | ||
check-with-ruff: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.x | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install ruff | ||
- name: Ruff linting check | ||
run: | | ||
ruff check --output-format=github . | ||
- name: Ruff format check | ||
run: | | ||
ruff format --diff . |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Test minimum dependencies | ||
|
||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
# When this workflow is queued, automatically cancel any previous running | ||
# or pending jobs from the same branch | ||
concurrency: | ||
group: ${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
# Required shell entrypoint to have properly activated conda environments | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
|
||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v4.1.1 | ||
- name: Setup Conda Environment | ||
uses: conda-incubator/setup-miniconda@v2.2.0 | ||
with: | ||
miniforge-variant: Mambaforge | ||
miniforge-version: latest | ||
use-mamba: true | ||
channel-priority: strict | ||
environment-file: ci/environment-mindeps.yaml | ||
activate-environment: test-environment | ||
auto-activate-base: false | ||
|
||
- name: Install | ||
run: python -m pip install --no-deps -e . | ||
|
||
- name: mamba list | ||
run: mamba list | ||
|
||
- name: Test | ||
run: bash scripts/test.sh | ||
|
||
- name: Upload coverage | ||
uses: codecov/codecov-action@v1 |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ build/ | |
*.egg-info/ | ||
docs/tutorials/data | ||
tests/integration/data | ||
.ruff_cache | ||
|
||
# OS X | ||
.DS_Store | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,30 @@ | ||
ci: | ||
autoupdate_schedule: "monthly" # Like dependabot | ||
autoupdate_schedule: "monthly" # Like dependabot | ||
autoupdate_commit_msg: "chore: update pre-commit hooks" | ||
autofix_prs: false # Comment "pre-commit.ci autofix" on a PR to trigger | ||
autofix_prs: false # Comment "pre-commit.ci autofix" on a PR to trigger | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.3.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: trailing-whitespace | ||
- id: check-toml | ||
- id: check-json | ||
- repo: https://github.com/psf/black | ||
rev: 23.10.1 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: trailing-whitespace | ||
- id: check-toml | ||
- id: check-json | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.1.6 | ||
hooks: | ||
- id: ruff | ||
args: ["--fix", "--exit-non-zero-on-fix"] | ||
- id: ruff-format | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: "v3.1.0" | ||
hooks: | ||
- id: prettier | ||
types_or: [yaml] | ||
- repo: https://github.com/citation-file-format/cffconvert | ||
rev: "054bda51dbe278b3e86f27c890e3f3ac877d616c" | ||
hooks: | ||
- id: "validate-cff" | ||
args: | ||
- "--verbose" |
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
Oops, something went wrong.