-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move run submodule out into the new
devices
plugin (#222)
- Loading branch information
1 parent
f10d58a
commit 37f5e8d
Showing
44 changed files
with
1,648 additions
and
1,076 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
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,64 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a single version of Python | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | ||
|
||
name: Lint and Test Devices Plugin | ||
|
||
# on: | ||
# push: | ||
# branches: ["main"] | ||
# paths: | ||
# - plugins/devices/src/turnkeyml_plugin_devices/common/** | ||
# - plugins/devices/src/turnkeyml_plugin_devices/onnxrt/** | ||
# - plugins/devices/src/turnkeyml_plugin_devices/torchrt/** | ||
# - plugins/devices/src/turnkeyml_plugin_devices/tensorrt/** | ||
# - plugins/devices/setup.py | ||
# - .github/workflows/test_devices_plugin.yml | ||
# pull_request: | ||
# branches: ["main"] | ||
# paths: | ||
# - plugins/devices/src/turnkeyml_plugin_devices/common/** | ||
# - plugins/devices/src/turnkeyml_plugin_devices/onnxrt/** | ||
# - plugins/devices/src/turnkeyml_plugin_devices/torchrt/** | ||
# - plugins/devices/src/turnkeyml_plugin_devices/tensorrt/** | ||
# - plugins/devices/setup.py | ||
# - .github/workflows/test_devices_plugin.yml | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build-devices-plugin: | ||
env: | ||
TURNKEY_TRACEBACK: True | ||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.11"] | ||
os: [ubuntu-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Miniconda with 64-bit Python | ||
uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
miniconda-version: "latest" | ||
activate-environment: tkml | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
shell: bash -el {0} | ||
run: | | ||
python -m pip install --upgrade pip | ||
conda install pylint | ||
pip install pytest | ||
pip install -e plugins/devices | ||
pip install transformers timm | ||
python -m pip check | ||
- name: Lint with PyLint | ||
shell: bash -el {0} | ||
run: | | ||
pylint plugins/devices/src --rcfile .pylintrc --disable E0401,E0203 | ||
- name: Test with unittest | ||
shell: bash -el {0} | ||
run: | | ||
python plugins/devices/test/unit.py | ||
python plugins/devices/test/benchmark.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.
15 changes: 0 additions & 15 deletions
15
examples/cli/plugins/example_combined/turnkeyml_plugin_example_combined/__init__.py
This file was deleted.
Oops, something went wrong.
116 changes: 0 additions & 116 deletions
116
examples/cli/plugins/example_combined/turnkeyml_plugin_example_combined/runtime.py
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
examples/cli/plugins/example_combined/turnkeyml_plugin_example_combined/tool.py
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
examples/cli/plugins/example_rt/turnkeyml_plugin_example_rt/__init__.py
This file was deleted.
Oops, something went wrong.
87 changes: 0 additions & 87 deletions
87
examples/cli/plugins/example_rt/turnkeyml_plugin_example_rt/runtime.py
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.