-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Removed old workflows * Added run tests workflow * Fixed tests for asserting images are the same * Fixed error in run test workflow * Added PyTorch installation command * Changed Python version to 3.8 to 3.8.10 * Changed back to 3.8 and changed platform to Windows * Switched back to Ubuntu * Skip tests if device is CPU to see if workflow fails because hardware isn't available * Edited test cases for detect target * Added boolean for Half value in detect target module * Added enable_half parameter in detect target * Fixed test cases * Removed enable_half from run * Created constant for enable_half * Added 2 spaces between top level functions * Added precision to variable name * Added docstring for detect target constructor parameters * Added comment for enable_half_precision in tests for detect target * Changed expected error to use np.sqrt function * Fixed issues with comments * Store if half precision is to be used or not used * Addressed PR comments: Added override full * Store if half precision is to be used or not used * Addressed PR comments: Added override full * Added override full to main_2024 * Updated comment
- Loading branch information
Showing
9 changed files
with
104 additions
and
75 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# This workflow will install Python dependencies and run tests with PyTest using Python 3.8 | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
||
name: Run tests | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Checkout repository | ||
- uses: actions/checkout@v3 | ||
|
||
# Set Python version | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
|
||
# Set up submodules and submodule dependencies | ||
- name: Set up submodule and submodule dependencies | ||
run: | | ||
git submodule update --init --recursive --remote | ||
pip install -r ./modules/common/requirements.txt | ||
# Install computer-vision-python dependencies | ||
- name: Install project dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
pip install -r requirements-pytorch.txt | ||
# Run tests with PyTest | ||
- name: Run tests | ||
run: pytest -vv |
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
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