-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
93 changed files
with
1,805,656 additions
and
651,028 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# This workflow will run doc tests for a single Python version. For more | ||
# information see: | ||
# https://help.github.com/actions/language-and-framework-guides/ | ||
# using-python-with-github-actions | ||
|
||
|
||
name: Documentation Check | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.9"] | ||
|
||
name: Documentation tests | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Set CDF Lib environment variable | ||
run: echo "CDF_LIB=$HOME/lib" >> $GITHUB_ENV | ||
|
||
- name: Install standard and test dependencies, then ocbpy | ||
run: | | ||
pip install -r docs/requirements.txt sphinx sphinx_rtd_theme numpydoc | ||
bash requirements.extra 2 | ||
python setup.py install | ||
- name: Check documentation build | ||
run: sphinx-build -E -b html docs dist/docs | ||
|
||
- name: Check documentation links | ||
run: sphinx-build -b linkcheck docs dist/docs | ||
|
||
- name: Load .zenodo.json to check for errors | ||
run: python -c "import json; json.loads(open('.zenodo.json').read())" |
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,45 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a | ||
# variety of Python versions. For more information see: | ||
# https://help.github.com/actions/language-and-framework-guides/ | ||
# using-python-with-github-actions | ||
|
||
name: unittest with flake8 | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
python-version: ["3.7", "3.8", "3.9", "3.10"] | ||
|
||
name: Python ${{ matrix.python-version }} on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install standard and test dependencies, then ocbpy | ||
run: | | ||
pip install -r requirements.txt | ||
bash requirements.extra 0 | ||
python setup.py install | ||
- name: Test PEP8 compliance | ||
run: flake8 . --count --show-source --statistics | ||
|
||
- name: Evaluate complexity | ||
run: flake8 . --count --exit-zero --max-complexity=10 --statistics | ||
|
||
- name: Run unit and integration tests | ||
run: coverage run --rcfile=setup.cfg -m unittest discover | ||
|
||
- name: Publish results to coveralls upon success | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: coveralls --rcfile=setup.cfg --service=github |
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,39 @@ | ||
# This workflow will install Python dependencies, run tests for pysat-ocbpy | ||
# with a variety of Python versions. For more information see: | ||
# https://help.github.com/actions/language-and-framework-guides/ | ||
# using-python-with-github-actions | ||
|
||
name: pysat unittest with flake8 | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
python-version: ["3.7", "3.8", "3.9", "3.10"] | ||
|
||
name: Python ${{ matrix.python-version }} on ${{ matrix.os }} with pysat | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install standard and test dependencies, then ocbpy | ||
run: | | ||
pip install -r requirements.txt | ||
bash requirements.extra 1 | ||
python setup.py install | ||
- name: Run unit and integration tests | ||
run: coverage run --rcfile=setup.cfg -m unittest discover | ||
|
||
- name: Publish results to coveralls | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: coveralls --rcfile=setup.cfg --service=github |
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,44 @@ | ||
# This workflow will install Python dependencies, run tests for DMSP-ocbpy | ||
# with a variety of Python versions. For more information see: | ||
# https://help.github.com/actions/language-and-framework-guides/ | ||
# using-python-with-github-actions | ||
|
||
name: DMSP-SSJ unittest with flake8 | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: ["3.7", "3.8", "3.9", "3.10"] | ||
|
||
name: Python ${{ matrix.python-version }} on ${{ matrix.os }} with DMSP-SSJ | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Set CDF Lib environment variable | ||
run: echo "CDF_LIB=$HOME/lib" >> $GITHUB_ENV | ||
|
||
- name: Install standard and test dependencies, then ocbpy | ||
env: | ||
CDF_LIB: $HOME/lib | ||
run: | | ||
pip install -r requirements.txt | ||
bash requirements.extra 2 | ||
python setup.py install | ||
- name: Run unit and integration tests | ||
run: coverage run --rcfile=setup.cfg -m unittest discover | ||
|
||
- name: Publish results to coveralls | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: coveralls --rcfile=setup.cfg --service=github |
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,39 @@ | ||
# This workflow will install Python dependencies, run tests on Windows with a | ||
# variety of Python versions. For more information see: | ||
# https://help.github.com/actions/language-and-framework-guides/ | ||
# using-python-with-github-actions | ||
|
||
name: Windows unittest with flake8 | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [windows-latest] | ||
python-version: ["3.8", "3.9"] | ||
|
||
name: Python ${{ matrix.python-version }} on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install standard and test dependencies, then ocbpy | ||
run: | | ||
pip install -r requirements.txt | ||
bash requirements.extra 0 | ||
python setup.py install | ||
- name: Run unit and integration tests | ||
run: coverage run --rcfile=setup.cfg -m unittest discover | ||
|
||
- name: Publish results to coveralls | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: coveralls --rcfile=setup.cfg --service=github |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"license": { | ||
"id": "bsd-license" | ||
}, | ||
"keywords": [ | ||
"magnetic coordinates", | ||
"coordinate-transformation", | ||
"coordinate-systems", | ||
"space", | ||
"space-physics", | ||
"ionosphere", | ||
"magnetosphere", | ||
"Conversion", | ||
"Coordinate Conversion", | ||
"Converting", | ||
"Magnetic Field", | ||
"Space Physics", | ||
"Heliophysics" | ||
], | ||
"creators": [ | ||
{ | ||
"orcid": "0000-0001-8875-9326", | ||
"affiliation": "Naval Research Laboratory", | ||
"name": "Angeline G. Burrell" | ||
}, | ||
{ | ||
"orcid": "0000-0003-1151-5934", | ||
"affiliation": "British Antarctic Survey", | ||
"name": "Gareth Chisham" | ||
}, | ||
{ | ||
"affiliation": "Birkeland Centre for Space Science", | ||
"name": "Jone Reistad" | ||
} | ||
] | ||
} |
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.