-
Notifications
You must be signed in to change notification settings - Fork 11
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 #448 from IDAS-Durham/version_update
Version update to 1.2.0
- Loading branch information
Showing
240 changed files
with
182,984 additions
and
6,283 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,67 @@ | ||
name: Run linting and sanity checks | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.8, 3.9] | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install system dependencies | ||
run: | | ||
sudo apt-get update -y | ||
sudo apt-get install -y openmpi-bin | ||
sudo apt install -y libhdf5-dev | ||
sudo apt install -y libopenmpi-dev | ||
- name: Install JUNE | ||
run: | | ||
python -m pip install --upgrade pip | ||
python setup.py install | ||
- name: Lint with black and flake8 | ||
run: | | ||
pip install flake8 | ||
pip install black | ||
black --check june | ||
black --check test_june | ||
# stop the build if there are Python syntax errors or undefined names | ||
# flake8 . --count --show-source --statistics | ||
# flake8 . | ||
flake8 june | ||
flake8 test_june | ||
- name: Get JUNE data | ||
run: bash scripts/get_june_data.sh | ||
|
||
- name: Test with pytest | ||
run: | | ||
pytest test_june --cov=june --cov-report xml | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
token: ${{secrets.CODECOV_TOKEN}} | ||
verbose: true | ||
|
||
- name: Test all cells in ipynb for errors | ||
run: | | ||
pip install jupyter | ||
jupyter nbconvert --NotebookClient.kernel_name=python3 --to notebook --inplace --execute Notebooks/quickstart.ipynb |
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,10 @@ | ||
- We use [black](https://github.com/psf/black) for coding style. | ||
- We use flake8 to detect errors on Git push, we recommend you do this on your code before creating a pull request. | ||
- License is available in LICENSE, by submitting code you are agreeing to publish your code with that license. | ||
- Please make a pull request for any changes which you wish to add | ||
- For imports which are just for type checks, to avoid cyclic dependencies, please surround the imports with: | ||
|
||
|
||
from typing import TYPE_CHECKING | ||
if TYPE_CHECKING: | ||
import ... |
Oops, something went wrong.