Skip to content

Commit

Permalink
Merge pull request #448 from IDAS-Durham/version_update
Browse files Browse the repository at this point in the history
Version update to 1.2.0
  • Loading branch information
JosephPB authored Oct 13, 2022
2 parents 33c20a4 + 17a5ab1 commit 75ae863
Show file tree
Hide file tree
Showing 240 changed files with 182,984 additions and 6,283 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/check.yml
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
53 changes: 0 additions & 53 deletions .github/workflows/python-publish.yml

This file was deleted.

10 changes: 7 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ test_june/unit/results/
.DS_Store
test_june/results/
.idea/
data
data/
*__pycache__*
*.ipynb_checkpoints*
*.pyc
*.ipynb
*.csv
*.pkl
*.egg-info
.env
Expand All @@ -25,3 +23,9 @@ dist/
*.prof
*.svg
test_results
.venv
**/tester_*
**/results/**

post_checkpoint_results/
pre_checkpoint_results
10 changes: 10 additions & 0 deletions CONTRIBUTING
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 ...
Loading

0 comments on commit 75ae863

Please sign in to comment.