-
Notifications
You must be signed in to change notification settings - Fork 10
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 #141 from sami2py/rc0.2.3
Release Candidate 0.2.3
- Loading branch information
Showing
31 changed files
with
816 additions
and
300 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# 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: 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: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r test_requirements.txt | ||
pip install -r requirements.txt | ||
- name: Manually install sami2py | ||
run: python setup.py install --user | ||
|
||
- 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,65 @@ | ||
# 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: Pytest with Flake8 | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [3.8, 3.9] | ||
numpy_ver: [latest] | ||
os: [ubuntu-latest, windows-latest] | ||
include: | ||
- python-version: 3.7 | ||
numpy_ver: 1.17 | ||
os: ubuntu-latest | ||
|
||
name: Python ${{ matrix.python-version }} on ${{ matrix.os }} with numpy ${{ matrix.numpy_ver }} | ||
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 latest dependencies | ||
if: ${{ matrix.numpy_ver == 'latest'}} | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r test_requirements.txt | ||
pip install -r requirements.txt | ||
pip install numpy --upgrade; | ||
- name: Install NEP29 dependencies | ||
if: ${{ matrix.numpy_ver != 'latest'}} | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r test_requirements.txt | ||
pip install -r requirements.txt | ||
pip install --no-binary :numpy: numpy==${{ matrix.numpy_ver }}; | ||
- name: Manually install sami2py | ||
run: python setup.py install --user | ||
|
||
- name: Test PEP8 compliance | ||
run: flake8 . --count --select=E,F,W --show-source --statistics | ||
|
||
- name: Evaluate complexity | ||
run: flake8 . --count --exit-zero --max-complexity=10 --statistics | ||
|
||
- name: Test with pytest | ||
run: pytest --cov=sami2py/ | ||
|
||
- name: Publish results to coveralls | ||
if: ${{ matrix.os == 'ubuntu-latest'}} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: coveralls --rcfile=setup.cfg --service=github | ||
|
||
- 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 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,38 @@ | ||
{ | ||
"creators": [ | ||
{ | ||
"affiliation": "Goddard Space Flight Center", | ||
"name": "Klenzing, Jeff", | ||
"orcid": "0000-0001-8321-6074" | ||
}, | ||
{ | ||
"affiliation": "Catholic University of America, Goddard Space Flight Center", | ||
"name": "Smith, Jonathon M.", | ||
"orcid": "0000-0002-8191-4765" | ||
}, | ||
{ | ||
"affiliation": "American University", | ||
"name": "Kitano, Reika" | ||
}, | ||
{ | ||
"affiliation": "Boston University", | ||
"name": "Hirsch, Michael", | ||
"orcid": "0000-0002-1637-6526" | ||
}, | ||
{ | ||
"affiliation": "U.S. Naval Research Laboratory", | ||
"name": "Burrell, Angeline G.", | ||
"orcid": "0000-0001-8875-9326" | ||
}, | ||
{ | ||
"name": "zzyztyy" | ||
} | ||
], | ||
"access_right": "open", | ||
"resource_type": [ | ||
{ | ||
"type": "software", | ||
"title": "Software" | ||
} | ||
] | ||
} |
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.