Skip to content

Commit 75ae863

Browse files
authored
Merge pull request #448 from IDAS-Durham/version_update
Version update to 1.2.0
2 parents 33c20a4 + 17a5ab1 commit 75ae863

File tree

240 files changed

+182984
-6283
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

240 files changed

+182984
-6283
lines changed

.github/workflows/check.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Run linting and sanity checks
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
push:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
python-version: [3.8, 3.9]
18+
19+
steps:
20+
21+
- uses: actions/checkout@v2
22+
- name: Set up Python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v1
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
27+
- name: Install system dependencies
28+
run: |
29+
sudo apt-get update -y
30+
sudo apt-get install -y openmpi-bin
31+
sudo apt install -y libhdf5-dev
32+
sudo apt install -y libopenmpi-dev
33+
34+
- name: Install JUNE
35+
run: |
36+
python -m pip install --upgrade pip
37+
python setup.py install
38+
39+
- name: Lint with black and flake8
40+
run: |
41+
pip install flake8
42+
pip install black
43+
black --check june
44+
black --check test_june
45+
# stop the build if there are Python syntax errors or undefined names
46+
# flake8 . --count --show-source --statistics
47+
# flake8 .
48+
flake8 june
49+
flake8 test_june
50+
51+
- name: Get JUNE data
52+
run: bash scripts/get_june_data.sh
53+
54+
- name: Test with pytest
55+
run: |
56+
pytest test_june --cov=june --cov-report xml
57+
58+
- name: Upload coverage to Codecov
59+
uses: codecov/codecov-action@v2
60+
with:
61+
token: ${{secrets.CODECOV_TOKEN}}
62+
verbose: true
63+
64+
- name: Test all cells in ipynb for errors
65+
run: |
66+
pip install jupyter
67+
jupyter nbconvert --NotebookClient.kernel_name=python3 --to notebook --inplace --execute Notebooks/quickstart.ipynb

.github/workflows/python-publish.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

.gitignore

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@ test_june/unit/results/
55
.DS_Store
66
test_june/results/
77
.idea/
8-
data
8+
data/
99
*__pycache__*
1010
*.ipynb_checkpoints*
1111
*.pyc
12-
*.ipynb
13-
*.csv
1412
*.pkl
1513
*.egg-info
1614
.env
@@ -25,3 +23,9 @@ dist/
2523
*.prof
2624
*.svg
2725
test_results
26+
.venv
27+
**/tester_*
28+
**/results/**
29+
30+
post_checkpoint_results/
31+
pre_checkpoint_results

CONTRIBUTING

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
- We use [black](https://github.com/psf/black) for coding style.
2+
- We use flake8 to detect errors on Git push, we recommend you do this on your code before creating a pull request.
3+
- License is available in LICENSE, by submitting code you are agreeing to publish your code with that license.
4+
- Please make a pull request for any changes which you wish to add
5+
- For imports which are just for type checks, to avoid cyclic dependencies, please surround the imports with:
6+
7+
8+
from typing import TYPE_CHECKING
9+
if TYPE_CHECKING:
10+
import ...

0 commit comments

Comments
 (0)