-
Notifications
You must be signed in to change notification settings - Fork 4
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 SFB-ELAINE/LeadDBS_integration
Lead-DBS integration
- Loading branch information
Showing
159 changed files
with
14,261 additions
and
3,841 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,54 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- "v*" | ||
pull_request: | ||
workflow_dispatch: | ||
schedule: | ||
# run every week (for --pre release tests) | ||
- cron: "0 0 * * 0" | ||
|
||
jobs: | ||
check-manifest: | ||
# check-manifest is a tool that checks that all files in version control are | ||
# included in the sdist (unless explicitly excluded) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: pipx run check-manifest | ||
|
||
test: | ||
name: ${{ matrix.platform }} (${{ matrix.python-version }}) | ||
runs-on: ${{ matrix.platform }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10", "3.11"] | ||
platform: [ubuntu-latest, macos-latest, windows-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: 🐍 Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache-dependency-path: "pyproject.toml" | ||
cache: "pip" | ||
|
||
- name: Install Dependencies | ||
run: | | ||
python -m pip install -U pip | ||
# if running a cron job, we add the --pre flag to test against pre-releases | ||
python -m pip install .[test] ${{ github.event_name == 'schedule' && '--pre' || '' }} | ||
- name: 🧪 Run Tests | ||
run: pytest --color=yes --cov --cov-report=xml --cov-report=term-missing | ||
|
||
- name: Coverage | ||
uses: codecov/codecov-action@v3 | ||
# TODO add release |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# enable pre-commit.ci at https://pre-commit.ci/ | ||
# it adds: | ||
# 1. auto fixing pull requests | ||
# 2. auto updating the pre-commit configuration | ||
ci: | ||
autoupdate_schedule: monthly | ||
autofix_commit_msg: "style(pre-commit.ci): auto fixes [...]" | ||
autoupdate_commit_msg: "ci(pre-commit.ci): autoupdate" | ||
|
||
repos: | ||
- repo: https://github.com/abravalheri/validate-pyproject | ||
rev: v0.13 | ||
hooks: | ||
- id: validate-pyproject | ||
|
||
- repo: https://github.com/charliermarsh/ruff-pre-commit | ||
rev: v0.0.282 | ||
hooks: | ||
- id: ruff | ||
args: [--fix] | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 23.7.0 | ||
hooks: | ||
- id: black |
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 +1,19 @@ | ||
include requirements.txt | ||
recursive-include docs *.dia | ||
recursive-include docs *.ipynb | ||
recursive-include docs *.md | ||
recursive-include docs *.py | ||
recursive-include docs *.rst | ||
recursive-include docs *.svg | ||
recursive-include docs *.txt | ||
recursive-include docs Makefile | ||
recursive-include examples *.ipynb | ||
recursive-include examples *.json | ||
recursive-include examples *.md | ||
recursive-include examples *.py | ||
recursive-include input_files *.gz | ||
recursive-include input_files *.h5 | ||
recursive-include input_files *.json | ||
recursive-include input_test_cases *.json | ||
recursive-include input_test_cases *.md | ||
recursive-include input_test_cases *.sh | ||
recursive-include ossdbs *.py |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.