-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into extract-urls-module
- Loading branch information
Showing
37 changed files
with
225 additions
and
109 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: 'Install icepyx' | ||
description: 'Install icepyx and dev dependencies' | ||
|
||
inputs: | ||
python-version: | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: "actions/setup-python@v5" | ||
with: | ||
python-version: "${{ inputs.python-version }}" | ||
|
||
- name: "Install package and test dependencies" | ||
shell: "bash" | ||
run: | | ||
python -m pip install . | ||
python -m pip install -r requirements-dev.txt |
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,53 @@ | ||
name: "Integration test" | ||
# NOTE: We're just running the tests that require earthdata login here; we | ||
# don't distinguish between unit and integration tests yet. | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" # Releases | ||
- "development" # PR merges | ||
pull_request: | ||
branches: | ||
- "main" # Release pull requests | ||
pull_request_review: | ||
types: | ||
- "submitted" | ||
paths: | ||
- ".github/**" | ||
- "icepyx/**/*.py" | ||
- "pyproject.toml" | ||
- "requirements*.txt" | ||
|
||
|
||
jobs: | ||
test: | ||
name: "Integration test" | ||
# Job is conditional: | ||
# - Do not run on PRs from forks | ||
# - Do not run on `pull_request_review` events unless the PR is approved. | ||
if: "${{ !github.event.pull_request.head.repo.fork && (github.event.action != 'pull_request_review' || github.event.review.state == 'approved') }}" | ||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- uses: "actions/checkout@v4" | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: "./.github/actions/install-icepyx" | ||
with: | ||
python-version: "3.12" | ||
|
||
- name: "Run tests" | ||
env: | ||
EARTHDATA_PASSWORD: "${{ secrets.EARTHDATA_PASSWORD }}" | ||
NSIDC_LOGIN: "${{ secrets.EARTHDATA_PASSWORD }}" | ||
run: | | ||
pytest icepyx/ --verbose --cov app \ | ||
icepyx/tests/test_behind_NSIDC_API_login.py \ | ||
icepyx/tests/test_auth.py | ||
- name: "Upload coverage report" | ||
uses: "codecov/[email protected]" | ||
with: | ||
token: "${{ secrets.CODECOV_TOKEN }}" |
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,40 @@ | ||
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" | ||
|
||
|
||
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/test_behind_NSIDC_API_login.py \ | ||
--ignore=icepyx/tests/test_auth.py | ||
- name: "Upload coverage report" | ||
uses: "codecov/[email protected]" | ||
with: | ||
token: "${{ secrets.CODECOV_TOKEN }}" |
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 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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import os | ||
import pypistats | ||
|
||
import pandas as pd | ||
import pypistats | ||
|
||
cwd = os.getcwd() | ||
|
||
|
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,5 +1,6 @@ | ||
import matplotlib.pyplot as plt | ||
import os | ||
|
||
import matplotlib.pyplot as plt | ||
import pandas as pd | ||
|
||
cwd = os.getcwd() | ||
|
Empty file.
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,6 +1,6 @@ | ||
from icepyx.core.query import Query, GenQuery | ||
from _icepyx_version import version as __version__ | ||
|
||
from icepyx.core.query import GenQuery, Query | ||
from icepyx.core.read import Read | ||
from icepyx.quest.quest import Quest | ||
from icepyx.core.variables import Variables | ||
|
||
from _icepyx_version import version as __version__ | ||
from icepyx.quest.quest import Quest |
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,6 +1,7 @@ | ||
import icepyx | ||
import pytest | ||
|
||
import icepyx | ||
|
||
|
||
@pytest.fixture(autouse=True) | ||
def add_ipx(doctest_namespace): | ||
|
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
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
Oops, something went wrong.