-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DRAFT enable publish of tools/model_explorer_circle
on-going draft to enable publish of tools/model_explorer_circle. Signed-off-by: SaeHie Park <[email protected]>
- Loading branch information
1 parent
6c52205
commit 142fa77
Showing
6 changed files
with
127 additions
and
1 deletion.
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,35 @@ | ||
name: publish model-explorer-circle to pypi | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-and-publish: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
ref: 'draft_tools_mec_pub' | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install build dependencies | ||
run: python -m pip install -U setuptools wheel build | ||
|
||
- name: Build | ||
run: | | ||
cd tools/model_explorer_circle/ | ||
python -m build . | ||
- name: Publish | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
packages-dir: tools/model_explorer_circle/dist/ | ||
skip-existing: false | ||
user: __token__ | ||
password: ${{ secrets.MEC_PYPI_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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Run tools/model-explorer-circle build | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- release/* | ||
paths: | ||
- '.github/workflows/run-tools-mec-build.yml' | ||
- 'tools/model_explorer_circle/**' | ||
- '!**/*.md' | ||
pull_request: | ||
branches: | ||
- master | ||
- release/* | ||
paths: | ||
- '.github/workflows/run-tools-mec-build.yml' | ||
- 'tools/model_explorer_circle/**' | ||
- '!**/*.md' | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
python: ['3.10'] # ['3.10', '3.11', '3.12'] | ||
platform: [ubuntu-latest] # [ubuntu-latest, macos-latest, windows-latest] | ||
|
||
runs-on: ${{ matrix.platform }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python ${{ matrix.python }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
|
||
- name: Install test dependencies | ||
run: python -m pip install --upgrade nox | ||
|
||
- name: Test | ||
run: | | ||
cd tools/model_explorer_circle | ||
python -m nox -s tests-${{ matrix.python }} |
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 |
---|---|---|
|
@@ -5,10 +5,14 @@ build-backend = "setuptools.build_meta" | |
[project] | ||
name = "model-explorer-circle" | ||
version = "0.0.1" | ||
maintainers = [ | ||
{ name="NNFW", email="[email protected]" }, | ||
] | ||
description = "Model Explorer Circle Adaptor" | ||
readme = "README.md" | ||
requires-python = ">=3.9" | ||
license = { text = "Apache Software License (Apache 2.0)" } | ||
keywords = ["circle", "model-explorer", "visualization"] | ||
classifiers = [ | ||
"Intended Audience :: Developers", | ||
"Programming Language :: Python :: 3.9", | ||
|
@@ -24,3 +28,6 @@ dependencies = [ | |
"flatbuffers" | ||
] | ||
|
||
[project.urls] | ||
"Repository" = "https://github.com/Samsung/ONE/tree/master/tools/model_explorer_circle/" | ||
"Bug Reports" = "https://github.com/Samsung/ONE/issues" |
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