-
Notifications
You must be signed in to change notification settings - Fork 16
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 #81 from aburrell/rc_v2.6.3
Release Candidate version 2.6.3
- Loading branch information
Showing
39 changed files
with
1,492 additions
and
1,674 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 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,43 @@ | ||
# 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 test | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: ["3.9"] | ||
|
||
env: | ||
FC: gfortran | ||
|
||
name: Docs ${{ matrix.python-version }} on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install standard and test dependencies, then apexpy | ||
run: | | ||
pip install build | ||
python -m build . | ||
pip install -r docs/requirements.txt | ||
- 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: | ||
os: [ubuntu-latest, macos-latest, windows-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@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: 'x64' | ||
|
||
- name: Install standard and test dependencies | ||
run: pip install build coverage coveralls flake8 numpy pytest | ||
|
||
- name: Install on Linux/Windows | ||
if: ${{ matrix.os != 'macos-latest' }} | ||
run: | | ||
python -m build . | ||
pip install -e . | ||
- name: Install on MacOS | ||
if: ${{ matrix.os == 'macos-latest' }} | ||
run: | | ||
brew reinstall gcc | ||
python -m build . | ||
pip install -e . | ||
- name: Test PEP8 compliance | ||
run: flake8 . --count --select=D,E,F,H,W --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 pytest | ||
|
||
- name: Publish results to coveralls upon success | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
coverage combine | ||
coverage report -m | ||
coveralls --rcfile=setup.cfg --service=github | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
path: dist/*.whl | ||
if-no-files-found: warn |
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 |
---|---|---|
|
@@ -14,7 +14,8 @@ time you have given to improve this project. | |
Short version | ||
============= | ||
|
||
* Submit bug reports and feature requests at `GitHub <https://github.com/aburrell/aacgmv2/issues>`_ | ||
* Submit bug reports and feature requests at | ||
`GitHub <https://github.com/aburrell/aacgmv2/issues>`_ | ||
* Make pull requests to the ``develop`` branch | ||
|
||
Bug reports | ||
|
@@ -50,7 +51,11 @@ To set up `aacgmv2` for local development: | |
|
||
git clone [email protected]:your_name_here/aacgmv2.git | ||
|
||
3. Create a branch for local development:: | ||
3. Build the local code to allow for local Python development:: | ||
|
||
pip install -e . | ||
|
||
4. Create a branch for local development:: | ||
|
||
git checkout -b name-of-your-bugfix-or-feature | ||
|
||
|
@@ -62,18 +67,17 @@ To set up `aacgmv2` for local development: | |
written as normal functions (starting with ``test_``) containing a standard | ||
``assert`` statement for testing output, or use the numpy testing suite. | ||
|
||
4. When you're done making changes, run all the checks, doc builder and spell | ||
checker with `tox <https://tox.readthedocs.io/en/latest/install.html>`_ [1]_:: | ||
5. When you're done making changes, run the local unit tests using pytest:: | ||
|
||
tox | ||
python -m pytest | ||
|
||
5. Commit your changes and push your branch to GitHub:: | ||
6. Commit your changes and push your branch to GitHub:: | ||
|
||
git add . | ||
git commit -m "Brief description of your changes" | ||
git push origin name-of-your-bugfix-or-feature | ||
|
||
6. Submit a pull request through the GitHub website. Pull requests should be | ||
7. Submit a pull request through the GitHub website. Pull requests should be | ||
made to the ``develop`` branch. | ||
|
||
Pull Request Guidelines | ||
|
@@ -91,16 +95,5 @@ For merging, you should: | |
|
||
.. [1] If you don't have all the necessary Python versions available locally or | ||
have trouble building all the testing environments, you can rely on | ||
Travis and AppVeyor - they will run the tests for each change you add in | ||
GitHub Actions - it will run the tests for each change you add in | ||
the pull request. | ||
Tips | ||
---- | ||
|
||
To run a subset of tests:: | ||
|
||
tox -e envname -- pytest -k test_myfeature | ||
|
||
To run all the test environments in parallel (you need to ``pip install detox``):: | ||
|
||
detox |
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.