-
Notifications
You must be signed in to change notification settings - Fork 31
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 #13 from martibosch/develop
Move `_gaussain_kernel1d` from scipy to the detectree codebase.
- Loading branch information
Showing
19 changed files
with
559 additions
and
696 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,69 @@ | ||
name: dev | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: checkout code repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: run pre-commit | ||
uses: pre-commit/[email protected] | ||
|
||
tests: | ||
|
||
name: Python ${{ matrix.python-version }} ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: ['3.7', '3.8', '3.9', '3.10'] | ||
include: | ||
- environment-file: environment-dev.yml | ||
miniforge-variant: Mambaforge | ||
miniforge-version: 4.14.0-0 | ||
|
||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
|
||
- name: setup conda environment with mambaforge | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
use-mamba: true | ||
activate-environment: detectree-dev | ||
python-version: ${{ matrix.python-version }} | ||
condarc-file: ${{ matrix.condarc-file }} | ||
environment-file: ${{ matrix.environment-file }} | ||
miniforge-variant: ${{ matrix.miniforge-variant }} | ||
miniforge-version: ${{ matrix.miniforge-version }} | ||
|
||
- name: install detectree | ||
run: | | ||
pip install . | ||
conda list | ||
conda info --all | ||
- name: test docs | ||
run: make -C ./docs html | ||
|
||
- name: test code | ||
run: | | ||
coverage run --source ./detectree --module pytest --verbose | ||
coverage xml -i | ||
coverage report -m | ||
- name: upload coverage report | ||
uses: codecov/codecov-action@v3 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,38 @@ | ||
exclude: 'docs|node_modules|migrations|.git|.tox' | ||
exclude: 'docs|node_modules|migrations|.tox' | ||
default_stages: [commit] | ||
fail_fast: true | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.0.1 | ||
rev: v4.3.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
|
||
- repo: https://github.com/python-jsonschema/check-jsonschema | ||
rev: 0.18.2 | ||
hooks: | ||
- id: check-github-workflows | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 21.5b1 | ||
rev: 22.10.0 | ||
hooks: | ||
- id: black | ||
|
||
- repo: https://github.com/timothycrosley/isort | ||
rev: 5.8.0 | ||
rev: 5.10.1 | ||
hooks: | ||
- id: isort | ||
|
||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: 3.9.2 | ||
rev: 5.0.4 | ||
hooks: | ||
- id: flake8 | ||
args: ['--config=setup.cfg'] | ||
additional_dependencies: [flake8-isort] | ||
|
||
- repo: https://github.com/pycqa/pydocstyle | ||
rev: 6.1.1 | ||
hooks: | ||
- id: pydocstyle | ||
files: ^detectree | ||
args: ['--config=setup.cfg'] |
Oops, something went wrong.