-
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.
- Loading branch information
0 parents
commit dcb1f2a
Showing
108 changed files
with
6,878 additions
and
0 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,40 @@ | ||
name: Documentation | ||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
branches: | ||
- main | ||
permissions: | ||
contents: write | ||
jobs: | ||
build_docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
- name: Install base requirements | ||
run: | | ||
cd requirements | ||
python -m pip install --upgrade pip | ||
pip install "setuptools>=67.2.0" | ||
pip install wheel build | ||
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu | ||
pip install -r requirements.txt | ||
pip install sphinx myst-parser pydata-sphinx-theme readthedocs-sphinx-search | ||
pip install --upgrade sphinx | ||
pip freeze | ||
- name: Sphinx build | ||
run: | | ||
sphinx-build docs _build | ||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | ||
with: | ||
publish_branch: gh-pages | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: _build/ | ||
force_orphan: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: Publish on PyPI | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
jobs: | ||
|
||
build_wheel: | ||
name: Build wheel | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
- name: Install requirements | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install "setuptools>=67.2.0" | ||
pip install wheel build PyYAML | ||
- name: Build .whl | ||
run: | | ||
python -m build --wheel --skip-dependency-check | ||
- name: Archive wheels | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: pypi-wheels | ||
path: dist/*.whl | ||
|
||
build_source: | ||
name: Build source | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
- name: Install requirements | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install "setuptools>=67.2.0" | ||
pip install wheel build PyYAML | ||
- name: Build .tar.gz | ||
run: | | ||
python -m build --sdist --skip-dependency-check | ||
- name: Archive wheels | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: pypi-source-dist | ||
path: dist/*.tar.gz | ||
|
||
publish_pypi: | ||
name: Publish 📦 on PyPI | ||
needs: [build_wheel, build_source] | ||
runs-on: ubuntu-latest | ||
environment: pypi | ||
permissions: | ||
id-token: write | ||
steps: | ||
- name: Collect and extract artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: dist | ||
pattern: pypi-* | ||
merge-multiple: true | ||
- name: Publish | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
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,79 @@ | ||
name: Test Build | ||
|
||
on: [workflow_dispatch] | ||
|
||
jobs: | ||
|
||
build_wheel: | ||
name: Build wheel | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
- name: Install requirements | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install "setuptools>=67.2.0" | ||
pip install wheel build PyYAML | ||
- name: Build .whl | ||
run: | | ||
python -m build --wheel --skip-dependency-check | ||
- name: Archive | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: pypi-wheel | ||
path: dist/*.whl | ||
|
||
build_source: | ||
name: Build source | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
- name: Install requirements | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install "setuptools>=67.2.0" | ||
pip install wheel build PyYAML | ||
- name: Build .tar.gz | ||
run: | | ||
python -m build --sdist --skip-dependency-check | ||
- name: Archive | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: pypi-source-dist | ||
path: dist/*.tar.gz | ||
|
||
test_pkg_dist: | ||
name: Test distribution | ||
needs: [build_wheel, build_source] | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
- name: Collect and extract artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: dist | ||
pattern: pypi-* | ||
merge-multiple: true | ||
- name: Test .whl | ||
run: | | ||
cd dist | ||
python -m pip install --upgrade pip | ||
pip install *.whl | ||
pip show vsensebox | ||
- name: Uninstall vsensebox | ||
run: | | ||
pip uninstall -y vsensebox | ||
- name: Test .tar.gz | ||
run: | | ||
cd dist | ||
python -m pip install --upgrade pip | ||
pip install *.tar.gz | ||
pip show vsensebox |
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 @@ | ||
name: Test Linux | ||
on: [workflow_dispatch] | ||
jobs: | ||
test_linux: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install requirements | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install "setuptools>=67.2.0" | ||
pip install wheel build | ||
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu | ||
cd requirements | ||
pip install -r requirements.txt | ||
pip freeze | ||
- name: Install VSenseBox from GitHub | ||
run: | | ||
pip install git+https://github.com/rathaumons/vsensebox.git | ||
- name: Install VSenseBox's data | ||
run: | | ||
pip install https://github.com/rathaumons/vsensebox-data/releases/download/v0.0.0/vsensebox_data_yolocls-0.0.0-py3-none-any.whl | ||
pip install https://github.com/rathaumons/vsensebox-data/releases/download/v0.0.0/vsensebox_data_yoloult-0.0.0-py3-none-any.whl | ||
pip install https://github.com/rathaumons/vsensebox-data/releases/download/v0.0.0/vsensebox_data_deepsort-0.0.0-py3-none-any.whl | ||
- name: Prepare for tests | ||
run: | | ||
cd tests | ||
python pretests.py | ||
- name: Test 01 | ||
run: | | ||
cd tests | ||
python test_01.py | ||
- name: Archive Results | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: tests-results-${{ matrix.python-version }} | ||
path: tests |
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,44 @@ | ||
name: Test macOS | ||
on: [workflow_dispatch] | ||
jobs: | ||
test_macos: | ||
runs-on: macos-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install requirements | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install "setuptools>=67.2.0" | ||
pip install wheel build | ||
cd requirements | ||
pip install -r requirements.txt | ||
pip freeze | ||
- name: Install VSenseBox from GitHub | ||
run: | | ||
pip install git+https://github.com/rathaumons/vsensebox.git | ||
- name: Install VSenseBox's data | ||
run: | | ||
pip install https://github.com/rathaumons/vsensebox-data/releases/download/v0.0.0/vsensebox_data_yolocls-0.0.0-py3-none-any.whl | ||
pip install https://github.com/rathaumons/vsensebox-data/releases/download/v0.0.0/vsensebox_data_yoloult-0.0.0-py3-none-any.whl | ||
pip install https://github.com/rathaumons/vsensebox-data/releases/download/v0.0.0/vsensebox_data_deepsort-0.0.0-py3-none-any.whl | ||
- name: Prepare for tests | ||
run: | | ||
cd tests | ||
python pretests.py | ||
- name: Test 01 | ||
run: | | ||
cd tests | ||
python test_01.py | ||
- name: Archive Results | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: tests-results-${{ matrix.python-version }} | ||
path: tests |
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,44 @@ | ||
name: Test Windows | ||
on: [workflow_dispatch] | ||
jobs: | ||
test_windows: | ||
runs-on: windows-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install requirements | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install "setuptools>=67.2.0" | ||
pip install wheel build | ||
cd requirements | ||
pip install -r requirements.txt | ||
pip freeze | ||
- name: Install VSenseBox from GitHub | ||
run: | | ||
pip install git+https://github.com/rathaumons/vsensebox.git | ||
- name: Install VSenseBox's data | ||
run: | | ||
pip install https://github.com/rathaumons/vsensebox-data/releases/download/v0.0.0/vsensebox_data_yolocls-0.0.0-py3-none-any.whl | ||
pip install https://github.com/rathaumons/vsensebox-data/releases/download/v0.0.0/vsensebox_data_yoloult-0.0.0-py3-none-any.whl | ||
pip install https://github.com/rathaumons/vsensebox-data/releases/download/v0.0.0/vsensebox_data_deepsort-0.0.0-py3-none-any.whl | ||
- name: Prepare for tests | ||
run: | | ||
cd tests | ||
python pretests.py | ||
- name: Test 01 | ||
run: | | ||
cd tests | ||
python test_01.py | ||
- name: Archive Results | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: tests-results-${{ matrix.python-version }} | ||
path: tests |
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,51 @@ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
pip-wheel-metadata/ | ||
share/python-wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
MANIFEST | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installed pip packages | ||
requirements/installed_*.txt | ||
|
||
# Environments | ||
.env | ||
.venv | ||
.idea | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
.DS_Store | ||
|
||
# Neural Network weights ----------------------------------------------------------------------------------------------- |
Oops, something went wrong.