-
Notifications
You must be signed in to change notification settings - Fork 0
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 #289 from AllenNeuralDynamics/dev
v0.5.0 release
- Loading branch information
Showing
55 changed files
with
14,718 additions
and
7,636 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 |
---|---|---|
@@ -1,63 +1,24 @@ | ||
name: CI | ||
name: ci/cd | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- main | ||
- feat* | ||
- dev* | ||
- release* | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
linters: | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.11"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.11" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install -e .[linters] --no-cache-dir | ||
- name: Run ruff format | ||
run: ruff format . | ||
- name: Run ruff check | ||
run: ruff check . | ||
- name: Run codespell | ||
run : codespell . | ||
|
||
tests: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup .NET Core SDK | ||
uses: actions/[email protected] | ||
with: | ||
dotnet-version: 7.x | ||
- name: Restore dotnet tools | ||
run: dotnet tool restore | ||
- name: Setup Bonsai | ||
working-directory: bonsai | ||
run: .\Setup.ps1 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.11' | ||
python-linting: | ||
uses: AllenNeuralDynamics/Aind.Behavior.GitHubActions/.github/workflows/python-linting.yml@main | ||
with: | ||
runs-on: ubuntu-latest | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install -e . --no-cache-dir | ||
- name: Run tests | ||
run: python -m unittest | ||
- name: Regenerate schemas | ||
run: python .\scripts\regenerate.py | ||
- name: Check for uncommitted changes | ||
run: | | ||
git config --global core.safecrlf false | ||
git diff --exit-code || (echo "Untracked changes found" && exit 1) | ||
aind-behavior-framework-testing: | ||
uses: AllenNeuralDynamics/Aind.Behavior.GitHubActions/.github/workflows/test-aind-behavior-framework.yml@main | ||
with: | ||
python-version-path: .python-version | ||
run-coverage: false | ||
run-schema: true |
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,10 @@ | ||
name: Tag and Publish | ||
|
||
on: | ||
workflow_dispatch: {} | ||
|
||
jobs: | ||
tag-and-publish: | ||
uses : AllenNeuralDynamics/Aind.Behavior.GitHubActions/.github/workflows/python-package-tag-and-publish.yml@main | ||
with: | ||
publish: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
3.11 | ||
3.12 | ||
3.13 |
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 |
---|---|---|
@@ -1,9 +1,21 @@ | ||
Push-Location $PSScriptRoot | ||
if (!(Test-Path "./Bonsai.exe")) { | ||
Invoke-WebRequest "https://github.com/bonsai-rx/bonsai/releases/download/2.8.5/Bonsai.zip" -OutFile "temp.zip" | ||
Move-Item -Path "NuGet.config" "temp.config" | ||
$release = "https://github.com/bonsai-rx/bonsai/releases/latest/download/Bonsai.zip" | ||
$configPath = "./Bonsai.config" | ||
if (Test-Path $configPath) { | ||
[xml]$config = Get-Content $configPath | ||
$bootstrapper = $config.PackageConfiguration.Packages.Package.where{$_.id -eq 'Bonsai'} | ||
if ($bootstrapper) { | ||
$version = $bootstrapper.version | ||
$release = "https://github.com/bonsai-rx/bonsai/releases/download/$version/Bonsai.zip" | ||
} | ||
} | ||
Invoke-WebRequest $release -OutFile "temp.zip" | ||
Move-Item -Path "NuGet.config" "temp.config" -ErrorAction SilentlyContinue | ||
Expand-Archive "temp.zip" -DestinationPath "." -Force | ||
Move-Item -Path "temp.config" "NuGet.config" -Force | ||
Move-Item -Path "temp.config" "NuGet.config" -Force -ErrorAction SilentlyContinue | ||
Remove-Item -Path "temp.zip" | ||
Remove-Item -Path "Bonsai32.exe" | ||
} | ||
& .\Bonsai.exe --no-editor | ||
& .\Bonsai.exe --no-editor | ||
Pop-Location |
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 |
---|---|---|
|
@@ -4,24 +4,35 @@ build-backend = "setuptools.build_meta" | |
|
||
[project] | ||
name = "aind-behavior-vr-foraging" | ||
description = "A library that defines AIND data schema for the Aind Behavior VR Foraing experiment." | ||
description = "A library that defines AIND data schema for the Aind Behavior VR Foraging experiment." | ||
authors = [ {name = "Bruno Cruz", email = "[email protected]"}] | ||
license = {text = "MIT"} | ||
requires-python = ">=3.11" | ||
classifiers = [ | ||
"Programming Language :: Python :: 3" | ||
"Programming Language :: Python :: 3.11", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: Microsoft :: Windows", | ||
] | ||
readme = "README.md" | ||
dynamic = ["version"] | ||
|
||
dependencies = [ | ||
"aind_behavior_services@git+https://github.com/AllenNeuralDynamics/[email protected]", | ||
"aind_behavior_services>=0.9, <0.10", | ||
] | ||
|
||
[project.urls] | ||
Documentation = "https://allenneuraldynamics.github.io/Aind.Behavior.VrForaging/" | ||
Repository = "https://github.com/AllenNeuralDynamics/Aind.Behavior.VrForaging/" | ||
Issues = "https://github.com/AllenNeuralDynamics/Aind.Behavior.VrForaging/issues" | ||
Changelog = "https://github.com/AllenNeuralDynamics/Aind.Behavior.VrForaging/releases" | ||
|
||
[project.optional-dependencies] | ||
|
||
linters = [ | ||
'ruff', | ||
'codespell' | ||
launcher = ["aind_behavior_experiment_launcher[aind-services]<0.4"] | ||
|
||
dev = ["aind_behavior_vr_foraging[launcher]", | ||
"ruff", | ||
"codespell" | ||
] | ||
|
||
docs = [ | ||
|
@@ -33,12 +44,16 @@ docs = [ | |
'sphinx-jsonschema' | ||
] | ||
|
||
[project.scripts] | ||
clabe = "aind_behavior_vr_foraging.launcher:main" | ||
regenerate = "aind_behavior_vr_foraging.regenerate:main" | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["src/DataSchemas"] | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "aind_behavior_vr_foraging.__version__"} | ||
readme = {file = ["README.md"]} | ||
readme = {file = "README.md", content-type = "text/markdown"} | ||
|
||
[tool.ruff] | ||
line-length = 120 | ||
|
@@ -51,5 +66,5 @@ mccabe = { max-complexity = 14 } | |
pydocstyle = { convention = 'google' } | ||
|
||
[tool.codespell] | ||
skip = '.git,*.pdf,*.svg,./bonsai,*.bonsai,./docs/_build' | ||
skip = '.git,*.pdf,*.svg,./bonsai,*.bonsai,./docs/_build,uv.lock' | ||
ignore-words-list = 'nd' |
Oops, something went wrong.