-
Notifications
You must be signed in to change notification settings - Fork 13
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 #34 from delve-team/develop
Minor refactor, add docs, fix tests, etc.
- Loading branch information
Showing
173 changed files
with
1,817 additions
and
360 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,23 @@ | ||
on: [push] | ||
|
||
jobs: | ||
paper: | ||
runs-on: ubuntu-latest | ||
name: Paper Draft | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Build draft PDF | ||
uses: openjournals/openjournals-draft-action@master | ||
with: | ||
journal: joss | ||
# This should be the path to the paper within your repo. | ||
paper-path: paper/paper.md | ||
- name: Upload | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: paper | ||
# This is the output path where Pandoc will write the compiled | ||
# PDF. Note, this should be the same directory as the input | ||
# paper.md | ||
path: paper/paper.pdf |
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,53 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
tags: [v*] | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
miniconda: | ||
name: Miniconda ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: ["ubuntu-latest", "windows-latest"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
activate-environment: test | ||
channels: conda-forge,defaults | ||
environment-file: environment.yml | ||
python-version: 3.8 | ||
auto-activate-base: false | ||
- shell: bash -l {0} | ||
run: | | ||
conda info | ||
conda list | ||
- name: Lint | ||
shell: bash -l {0} | ||
run: | | ||
conda install flake8 | ||
python -m flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
python -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | ||
- name: Run pytest | ||
shell: bash -l {0} | ||
run: | | ||
pip install -r requirements/dev.txt | ||
pip install -r requirements/docs.txt | ||
pip install --upgrade pytest flake8 sphinx | ||
pip install scipy --force-reinstall # for https://github.com/conda/conda/issues/6396 | ||
pip install . | ||
conda install pytest | ||
py.test . --cov-report=xml --cov=delve -vvv | ||
- name: Codecov | ||
uses: codecov/codecov-action@v2.0.2 | ||
with: | ||
flags: unittests | ||
env_vars: OS,PYTHON | ||
name: codecov-umbrella | ||
fail_ci_if_error: false | ||
verbose: false |
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 |
---|---|---|
@@ -1,4 +1,27 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.0.1 | ||
hooks: | ||
- id: check-json | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: check-added-large-files | ||
- id: requirements-txt-fixer | ||
- repo: https://github.com/pre-commit/mirrors-yapf | ||
rev: stable # Use the sha / tag you want to point at | ||
hooks: | ||
- id: yapf | ||
- repo: local | ||
hooks: | ||
- id: flake8 | ||
name: flake8 | ||
entry: python -m pflake8 | ||
language: system | ||
types: [python] | ||
- repo: git://github.com/timothycrosley/isort | ||
rev: 5.8.0 | ||
hooks: | ||
- id: isort | ||
args: [ "--profile", "black" ] | ||
exclude: ^scripts/old_notebooks |
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,13 @@ | ||
version: 2 | ||
sphinx: | ||
configuration: docs/source/conf.py | ||
|
||
formats: all | ||
|
||
build: | ||
image: latest | ||
|
||
python: | ||
version: 3.7 | ||
install: | ||
- requirements: requirements/docs.txt |
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.