-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #116 from aburrell/rc_0.3.0
Release Candidate 0.3.0
- Loading branch information
Showing
90 changed files
with
1,805,576 additions
and
651,027 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@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
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,84 @@ | ||
# 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, windows-latest] | ||
python-version: ["3.7", "3.8", "3.9", "3.10"] | ||
install-extras: [0, 1, 2] | ||
exclude: | ||
- os: windows-latest | ||
install-extras: 2 | ||
|
||
name: Python ${{ matrix.python-version }} on ${{ matrix.os }} with extras ${{ matrix.install-extras }} | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Set CDF Lib environment variable | ||
if: ${{ matrix.install-extras == 2 }} | ||
run: echo "CDF_LIB=$HOME/lib" >> $GITHUB_ENV | ||
|
||
- name: Install standard and test dependencies, then ocbpy for SSJ | ||
if: ${{ matrix.install-extras == 2 }} | ||
env: | ||
CDF_LIB: $HOME/lib | ||
run: | | ||
pip install -r requirements.txt | ||
bash requirements.extra ${{ matrix.install-extras }} | ||
python setup.py install | ||
- name: Install standard and test dependencies, then ocbpy without SSJ | ||
if: ${{ matrix.install-extras != 2 }} | ||
run: | | ||
pip install -r requirements.txt | ||
bash requirements.extra ${{ matrix.install-extras }} | ||
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 }} | ||
COVERALLS_PARALLEL: true | ||
COVERALLS_FLAG_NAME: run-${{ matrix.python-version }}-${{ matrix.os }}-${{ matrix.install-extras }} | ||
run: coveralls --rcfile=setup.cfg --service=github || true | ||
|
||
finish: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.10"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Coveralls Finished | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
pip install --upgrade coveralls | ||
coveralls --service=github --finish || true |
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
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,10 +1,8 @@ | ||
graft ocbpy/tests/test_data | ||
graft ocbpy/boundaries | ||
|
||
include AUTHORS.rst | ||
include README.md | ||
include License.md | ||
include CODE_OF_CONDUCT.md | ||
include CODE_OF_CONDUCT.rst | ||
include CONTRIBUTING.rst | ||
include Changelog.rst | ||
include *.rst | ||
include *.md | ||
|
||
include *.yml | ||
include .zenodo.json |
Oops, something went wrong.