-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into additional-cameras
- Loading branch information
Showing
11 changed files
with
88 additions
and
1,395 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,45 @@ | ||
# 1. Name of workflow | ||
name: Unit Tests | ||
|
||
# 2. When to run workflow | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- develop | ||
merge_group: | ||
|
||
# 3. Jobs to run (in parallel) | ||
jobs: | ||
|
||
# 3.1. Job name (internal) | ||
test: | ||
|
||
# 3.2. Job name (external) | ||
name: Unit Tests | ||
|
||
# 3.3. Runner OS (can be Windows, macOS, or Linux) | ||
runs-on: ubuntu-latest | ||
|
||
# 3.4. Sequential steps in job | ||
steps: | ||
|
||
# 3.4.1. Checkout code | ||
- name: 🛎 Checkout | ||
uses: actions/checkout@v3 | ||
|
||
# 3.4.2. Install and setup Python | ||
- name: 🐍 Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version-file: API/pyproject.toml | ||
# cache: 'pip' | ||
|
||
# Install dependencies (if any). They will be cached with saved for next time with the cache command above | ||
|
||
- name: Install | ||
run: pip install API/. | ||
|
||
# 3.4.3. Run tests (execute arbitrary commands in shell) | ||
- name: 🏃Run tests | ||
run: python -m unittest discover -s API |
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,6 +1,6 @@ | ||
Metadata-Version: 2.1 | ||
Name: oursin | ||
Version: 0.4.7 | ||
Version: 0.4.8 | ||
Summary: Urchin - Universal Renderer Creating Helpful Images for Neuroscience Python API | ||
Author-email: Daniel Birman <[email protected]> | ||
License: GNU GENERAL PUBLIC LICENSE | ||
|
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta" | |
|
||
[project] | ||
name = "oursin" | ||
version = "0.4.7" | ||
version = "0.4.9" | ||
authors = [ | ||
{ name="Daniel Birman", email="[email protected]" }, | ||
] | ||
|
Binary file not shown.
Empty file.
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,20 @@ | ||
from unittest import TestCase | ||
from unittest.mock import Mock | ||
|
||
import oursin as urchin | ||
|
||
|
||
class TestClass(TestCase): | ||
"""Test demo class functions""" | ||
|
||
# def setUp(self): | ||
# """Setup class and mock callback function""" | ||
# self.demo = DemoClass('Demo') | ||
# self.mock = Mock() | ||
|
||
def test_sanitize_vec3(self): | ||
self.assertEqual(urchin.utils.sanitize_vector3([1,2,3]), [1,2,3]) | ||
|
||
self.assertEqual(urchin.utils.sanitize_vector3((1,2,3)), [1,2,3]) | ||
|
||
self.assertRaises(Exception, urchin.utils.sanitize_vector3, (1,2)) |
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.