-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ab6aec2
Showing
38 changed files
with
15,201 additions
and
0 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,16 @@ | ||
--- | ||
name: 'Bug Report' | ||
about: 'Report a bug or unexpected behavior to help us improve the package' | ||
labels: 'bug' | ||
--- | ||
|
||
Please: | ||
|
||
- [ ] Check for duplicate issues. | ||
- [ ] Provide a complete example of how to reproduce the bug, wrapped in triple backticks like this: | ||
|
||
```python | ||
import brainunit as bu | ||
``` | ||
|
||
- [ ] If applicable, include full error messages/tracebacks. |
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,10 @@ | ||
--- | ||
name: 'Feature Request' | ||
about: 'Suggest a new idea or improvement for ``brainunit``' | ||
labels: 'enhancement' | ||
--- | ||
|
||
Please: | ||
|
||
- [ ] Check for duplicate requests. | ||
- [ ] Describe your goal, and if possible provide a code snippet with a motivating example. |
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,37 @@ | ||
<!--- Provide a general summary of your changes in the Title above --> | ||
<!--- Please do remember to follow the contributing guidelines --> | ||
|
||
## Description | ||
<!--- Why is this change required? What problem does it solve? --> | ||
<!--- Describe your changes in detail here to communicate to the maintainers why this pull request should be accepted --> | ||
<!--- Describe your technology stack here if not a documentation update --> | ||
<!--- Tasklist format is recommended for all pull requests and is required for all draft pull requests. You can couple your description with the tasklist --> | ||
<!--- If it fixes an open issue, please link to the issue here in the last line. --> | ||
|
||
## How Has This Been Tested | ||
<!--- Please describe in detail how you tested your changes locally --> | ||
<!--- Include details of your testing environment, and the tests you ran to --> | ||
<!--- For example, markdown files should pass markdownlint locally according to the rules --> | ||
<!--- See how your change affects other areas of the code, etc. --> | ||
|
||
## Types of changes | ||
<!--- What types of changes does your code introduce? --> | ||
<!--- Only left the line that best describes this pull request --> | ||
- Bug fix (non-breaking change which fixes an issue) | ||
- New feature (non-breaking change which adds functionality) | ||
- Documentation (non-breaking change which updates documentation) | ||
- Breaking change (fix or feature that would cause existing functionality to change) | ||
- Code style (formatting, renaming) | ||
- Refactoring (no functional changes, no api changes) | ||
- Other (please describe here): | ||
|
||
## Checklist | ||
<!--- Go over all the following points, and put an `x` in all the boxes that apply. --> | ||
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> | ||
- [ ] Code follows the code style of this project. | ||
- [ ] Changes follow the **CONTRIBUTING** guidelines. | ||
- [ ] Update necessary documentation accordingly. | ||
- [ ] Lint and tests pass locally with the changes. | ||
- [ ] Check issues and pull requests first. You don't want to duplicate effort. | ||
|
||
## Other information |
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,26 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "pip" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
allow: | ||
- dependency-type: "all" | ||
commit-message: | ||
prefix: ":arrow_up:" | ||
open-pull-requests-limit: 50 | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
allow: | ||
- dependency-type: "all" | ||
commit-message: | ||
prefix: ":arrow_up:" | ||
open-pull-requests-limit: 50 |
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,113 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
||
name: Continuous Integration | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' # matches every branch | ||
pull_request: | ||
branches: | ||
- '**' # matches every branch | ||
|
||
|
||
permissions: | ||
contents: read # to fetch code | ||
actions: write # to cancel previous workflows | ||
|
||
# This is what will cancel the workflow | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
|
||
jobs: | ||
test_linux: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ "3.9", "3.10", "3.11", "3.12" ] | ||
|
||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- uses: actions/checkout@v4 | ||
- name: Print concurrency group | ||
run: echo '${{ github.workflow }}-${{ github.ref }}' | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip cache purge | ||
python -m pip install --upgrade pip setuptools --no-cache-dir | ||
python -m pip install -r requirements-dev.txt --no-cache-dir | ||
pip install . --no-cache-dir | ||
- name: Test with pytest | ||
run: | | ||
pytest brainunit/ | ||
test_macos: | ||
runs-on: macos-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ "3.9", "3.10", "3.11", "3.12" ] | ||
|
||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- uses: actions/checkout@v4 | ||
- name: Print concurrency group | ||
run: echo '${{ github.workflow }}-${{ github.ref }}' | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip cache purge | ||
python -m pip install --upgrade pip setuptools --no-cache-dir | ||
python -m pip install -r requirements-dev.txt --no-cache-dir | ||
pip install . | ||
- name: Test with pytest | ||
run: | | ||
pytest brainunit/ | ||
test_windows: | ||
runs-on: windows-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ "3.9", "3.10", "3.11", "3.12" ] | ||
|
||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- uses: actions/checkout@v4 | ||
- name: Print concurrency group | ||
run: echo '${{ github.workflow }}-${{ github.ref }}' | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip cache purge | ||
python -m pip install --upgrade pip setuptools --no-cache-dir | ||
python -m pip install -r requirements-dev.txt --no-cache-dir | ||
pip install . --no-cache-dir | ||
- name: Test with pytest | ||
run: | | ||
pytest brainunit/ -p no:faulthandler |
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,17 @@ | ||
name: Publish to PyPI.org | ||
on: | ||
release: | ||
types: [published] | ||
jobs: | ||
pypi: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- run: python setup.py bdist_wheel --python-tag=py3 | ||
- name: Publish package | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
Oops, something went wrong.