From 09b3888ad06736b36fc4bf60e4ef7985d5df04e7 Mon Sep 17 00:00:00 2001 From: Matevz Morato Date: Thu, 10 Nov 2022 01:22:25 +0100 Subject: [PATCH 01/54] Inital test --- .github/workflows/install_requirements.yml | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/install_requirements.yml diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml new file mode 100644 index 000000000..0c673c474 --- /dev/null +++ b/.github/workflows/install_requirements.yml @@ -0,0 +1,23 @@ + name: Test requirements installation + + on: + workflow_dispatch: + push: + branches: + - main + - develop + tags: + - 'v*' + + ################################### + ################################### + + # A workflow run is made up of one or more jobs that can run sequentially or in parallel + jobs: + test-job: + runs-on: ubuntu-latest + steps: + - name: Test one + run: echo "Hello from here!!!" + - name: Test two + run: echo "Hello from here too!!!" From d16d2dd716262db16d7056e2d71943abfb4abbe7 Mon Sep 17 00:00:00 2001 From: Matevz Morato Date: Thu, 10 Nov 2022 01:40:09 +0100 Subject: [PATCH 02/54] test --- .github/workflows/install_requirements.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index 0c673c474..b569b6c25 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -17,7 +17,9 @@ test-job: runs-on: ubuntu-latest steps: + container: + - image: ubuntu:22.04 - name: Test one - run: echo "Hello from here!!!" + run: lsb_release -a - name: Test two run: echo "Hello from here too!!!" From 0b921333838467c6c23d4dcd08079db11ff6c609 Mon Sep 17 00:00:00 2001 From: Matevz Morato Date: Thu, 10 Nov 2022 01:43:42 +0100 Subject: [PATCH 03/54] test --- .github/workflows/docker-hub.yml | 100 ---- .github/workflows/install_requirements.yml | 2 +- .github/workflows/main.yml | 540 --------------------- 3 files changed, 1 insertion(+), 641 deletions(-) delete mode 100644 .github/workflows/docker-hub.yml delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/docker-hub.yml b/.github/workflows/docker-hub.yml deleted file mode 100644 index 3caec9d99..000000000 --- a/.github/workflows/docker-hub.yml +++ /dev/null @@ -1,100 +0,0 @@ -name: Publish Docker image -on: - workflow_dispatch: - push: - branches: - - main - - develop - tags: - - 'v*' -jobs: - - build: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, [Linux, ARM], [Linux, ARM64]] - include: - - os: ubuntu-latest - arch: amd64 - - os: [Linux, ARM] - arch: armv7 - - os: [Linux, ARM64] - arch: armv8 - steps: - - name: Clean the workspace - uses: docker://alpine - with: - args: /bin/sh -c "rm -rf /github/workspace/.* || rm -rf /github/workspace/*" - - name: Checkout - uses: actions/checkout@v3 - with: - submodules: recursive - - name: Login to DockerHub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKERHUB_USER }} - password: ${{ secrets.DOCKERHUB_PASS }} - - - name: Set Image Name (development) - id: name - if: startsWith(github.ref, 'refs/tags/v') != true - run: echo "LUXONIS_IMAGE_TAG=${{ github.sha }}-${{ matrix.arch }}" >> $GITHUB_ENV - - - name: Set Image Name (release) - if: startsWith(github.ref, 'refs/tags/v') == true - run: echo "LUXONIS_IMAGE_TAG=${GITHUB_REF#refs/*/}-${{ matrix.arch }}" >> $GITHUB_ENV - - - name: Build and push - uses: docker/build-push-action@v3 - with: - push: true - file: ci/Dockerfile - tags: luxonis/depthai-library:${{ env.LUXONIS_IMAGE_TAG }} - - - name: Cleanup the created image - run: docker image rm luxonis/depthai-library:${{ env.LUXONIS_IMAGE_TAG }} - - upload: - needs: [build] - name: Combine into a single multi-arch image and upload tags - runs-on: ubuntu-latest - steps: - - - name: Login to DockerHub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKERHUB_USER }} - password: ${{ secrets.DOCKERHUB_PASS }} - - - name: Get Version - id: vars - run: echo ::set-output name=short_ref::${GITHUB_REF#refs/*/} - - - name: Build and push (development) - if: startsWith(github.ref, 'refs/tags/v') != true - run: | - docker manifest create \ - luxonis/depthai-library:${{ github.sha}} \ - --amend luxonis/depthai-library:${{ github.sha }}-amd64 \ - --amend luxonis/depthai-library:${{ github.sha }}-armv7 \ - --amend luxonis/depthai-library:${{ github.sha }}-armv8 - # Push - docker manifest push luxonis/depthai-library:${{ github.sha }} - - - name: Build and push (release) - if: startsWith(github.ref, 'refs/tags/v') == true - run: | - docker manifest create \ - luxonis/depthai-library:${{ steps.vars.outputs.short_ref }} \ - --amend luxonis/depthai-library:${{ steps.vars.outputs.short_ref }}-amd64 \ - --amend luxonis/depthai-library:${{ steps.vars.outputs.short_ref }}-armv7 \ - --amend luxonis/depthai-library:${{ steps.vars.outputs.short_ref }}-armv8 - # Push - docker manifest push luxonis/depthai-library:${{ steps.vars.outputs.short_ref }} - docker manifest create \ - luxonis/depthai-library:latest \ - --amend luxonis/depthai-library:${{ steps.vars.outputs.short_ref }}-amd64 \ - --amend luxonis/depthai-library:${{ steps.vars.outputs.short_ref }}-armv7 \ - --amend luxonis/depthai-library:${{ steps.vars.outputs.short_ref }}-armv8 - docker manifest push luxonis/depthai-library:latest diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index b569b6c25..54175c705 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -16,9 +16,9 @@ jobs: test-job: runs-on: ubuntu-latest - steps: container: - image: ubuntu:22.04 + steps: - name: Test one run: lsb_release -a - name: Test two diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index e4145a19d..000000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,540 +0,0 @@ -name: Depthai Python CI/CD - -# Controls when the action will run. Triggers the workflow on push - -################################### -# WARNING ######################### -# as self-hosted runners are used, and security policy for them has not been yet determined by GitHub -# pay close attention to not enable workflows on pull_request events -# TLDR: do NOT add 'pull_request' here for the time being -on: - workflow_dispatch: - push: - branches: - - main - - develop - - gen2 - - gen2_develop - tags: - - 'v*' - -################################### -################################### - -env: - CMAKE_WINDOWS_SDK_VERSION: '10.0.18362.0' - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - - # Job which builds docstrings for the rest of the wheel builds - build-docstrings: - runs-on: ubuntu-latest - steps: - - name: Cache .hunter folder - uses: actions/cache@v3 - with: - path: ~/.hunter - key: hunter-ubuntu-latest - - name: List .hunter cache directory - run: ls -a -l ~/.hunter/_Base/ || true - - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: 3.8 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - sudo apt install libusb-1.0-0-dev - python -m pip install -r docs/requirements_mkdoc.txt - - name: Configure project - run: cmake -S . -B build -DDEPTHAI_PYTHON_FORCE_DOCSTRINGS=ON -DDEPTHAI_PYTHON_DOCSTRINGS_OUTPUT="$PWD/docstrings/depthai_python_docstring.hpp" - - name: Build target 'pybind11_mkdoc' - run: cmake --build build --target pybind11_mkdoc --parallel 4 - - name: Upload docstring artifacts - uses: actions/upload-artifact@v3 - with: - name: docstrings - path: docstrings/ - retention-days: 1 - - - # Build and test bindings - pytest: - needs: build-docstrings - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - runs-on: ${{ matrix.os }} - steps: - - name: Print home directory - run: echo Home directory inside container $HOME - - - name: Cache .hunter folder - if: matrix.os != 'windows-latest' - uses: actions/cache@v3 - with: - path: ~/.hunter/ - key: hunter-pytest-${{ matrix.os }} - - name: Cache .hunter folder - if: matrix.os == 'windows-latest' - uses: actions/cache@v3 - with: - path: C:/.hunter/ - key: hunter-pytest-${{ matrix.os }} - - - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - - uses: actions/download-artifact@v3 - with: - name: 'docstrings' - path: docstrings - - name: Specify docstring to use while building the wheel - run: echo "DEPTHAI_PYTHON_DOCSTRINGS_INPUT=$PWD/docstrings/depthai_python_docstring.hpp" >> $GITHUB_ENV - - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: "3.10" - - - name: Install dependencies (Ubuntu) - if: matrix.os == 'ubuntu-latest' - run: | - python -m pip install --upgrade pip - sudo apt install libusb-1.0-0-dev - - - name: Install dependencies (MacOS) - if: matrix.os == 'macos-latest' - run: | - python -m pip install --upgrade pip - brew install libusb - - - name: Install pytest - run: | - python -m pip install pytest numpy - - - name: Compile - run: | - cmake -S . -B build -D CMAKE_BUILD_TYPE=Release -D DEPTHAI_PYTHON_DOCSTRINGS_INPUT=$PWD/docstrings/depthai_python_docstring.hpp -D DEPTHAI_PYTHON_ENABLE_TESTS=ON - cmake --build build --parallel 4 - - name: Test - run: | - cmake --build build --target pytest --config Release - - - # This job builds wheels for armhf arch (RPi) - build-linux-armhf: - needs: build-docstrings - strategy: - matrix: - rpi-os: [rpi-buster, rpi-bullseye] - runs-on: ${{ matrix.rpi-os }} - steps: - - name: Print home directory - run: echo Home directory inside container $HOME - - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - - uses: actions/download-artifact@v3 - with: - name: 'docstrings' - path: docstrings - - name: Specify docstring to use while building the wheel - run: echo "DEPTHAI_PYTHON_DOCSTRINGS_INPUT=$PWD/docstrings/depthai_python_docstring.hpp" >> $GITHUB_ENV - - - name: Append build hash if not a tagged commit - if: startsWith(github.ref, 'refs/tags/v') != true - run: echo "BUILD_COMMIT_HASH=${{github.sha}}" >> $GITHUB_ENV - - name: Building wheel - run: python3 -m pip wheel . -w ./wheelhouse/ --verbose - - name: Auditing wheel - run: for whl in wheelhouse/*.whl; do auditwheel repair "$whl" --plat linux_armv7l -w wheelhouse/audited/; done - - name: Archive wheel artifacts - uses: actions/upload-artifact@v3 - with: - name: audited-wheels - path: wheelhouse/audited/ - - name: Deploy wheels to artifactory (if not a release) - if: startsWith(github.ref, 'refs/tags/v') != true - run: bash ./ci/upload-artifactory.sh - env: - ARTIFACTORY_URL: ${{ secrets.ARTIFACTORY_URL }} - ARTIFACTORY_USER: ${{ secrets.ARTIFACTORY_USER }} - ARTIFACTORY_PASS: ${{ secrets.ARTIFACTORY_PASS }} - - - # This job builds wheels for Windows x86_64 arch - build-windows-x86_64: - needs: build-docstrings - runs-on: windows-latest - strategy: - matrix: - python-version: [3.6, 3.7, 3.8, 3.9, '3.10', '3.11'] - python-architecture: [x64, x86] - fail-fast: false - steps: - - name: Cache .hunter folder - uses: actions/cache@v3 - with: - path: C:/.hunter - key: hunter-msvc - - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - - uses: actions/download-artifact@v3 - with: - name: 'docstrings' - path: docstrings - - name: Specify docstring to use while building the wheel - run: echo "DEPTHAI_PYTHON_DOCSTRINGS_INPUT=$PWD/docstrings/depthai_python_docstring.hpp" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append - - - name: Select Windows SDK - run: echo "CMAKE_ARGS=-DCMAKE_SYSTEM_VERSION=${{ env.CMAKE_WINDOWS_SDK_VERSION }}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append - - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - architecture: ${{ matrix.python-architecture }} - - name: Append build hash if not a tagged commit - if: startsWith(github.ref, 'refs/tags/v') != true - run: echo "BUILD_COMMIT_HASH=${{github.sha}}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append - - name: Install dependencies - run: | - python -m pip install --upgrade pip - - name: Building wheels - run: python -m pip wheel . -w ./wheelhouse/audited/ --verbose - - name: Archive wheel artifacts - uses: actions/upload-artifact@v3 - with: - name: audited-wheels - path: wheelhouse/audited/ - - name: Deploy wheels to artifactory (if not a release) - if: startsWith(github.ref, 'refs/tags/v') != true - run: bash ./ci/upload-artifactory.sh - env: - ARTIFACTORY_URL: ${{ secrets.ARTIFACTORY_URL }} - ARTIFACTORY_USER: ${{ secrets.ARTIFACTORY_USER }} - ARTIFACTORY_PASS: ${{ secrets.ARTIFACTORY_PASS }} - - # This job builds wheels for macOS x86_64 arch - build-macos-x86_64: - needs: build-docstrings - runs-on: macos-latest - strategy: - matrix: - python-version: [3.6, 3.7, 3.8, 3.9, '3.10', '3.11'] - fail-fast: false - steps: - - name: Cache .hunter folder - uses: actions/cache@v3 - with: - path: ~/.hunter - key: hunter-macos-latest - - name: List .hunter cache directory - run: | - ls -a -l ~/.hunter/_Base/ || true - echo "PATH=$PATH" - - - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - - uses: actions/download-artifact@v3 - with: - name: 'docstrings' - path: docstrings - - name: Specify docstring to use while building the wheel - run: echo "DEPTHAI_PYTHON_DOCSTRINGS_INPUT=$PWD/docstrings/depthai_python_docstring.hpp" >> $GITHUB_ENV - - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - name: Append build hash if not a tagged commit - if: startsWith(github.ref, 'refs/tags/v') != true - run: echo "BUILD_COMMIT_HASH=${{github.sha}}" >> $GITHUB_ENV - - name: Install dependencies - run: | - python -m pip install --upgrade pip - brew install libusb - python -m pip install delocate - - name: Set macos deployment target - run: echo "MACOSX_DEPLOYMENT_TARGET=10.9" >> $GITHUB_ENV - - name: Building wheels - run: python -m pip wheel . -w ./wheelhouse/ --verbose - - name: Auditing wheels - run: ci/repair-whl-macos.sh `pwd`/wheelhouse/* `pwd`/wheelhouse/audited - - name: Archive wheel artifacts - uses: actions/upload-artifact@v3 - with: - name: audited-wheels - path: wheelhouse/audited/ - - name: Deploy wheels to artifactory (if not a release) - if: startsWith(github.ref, 'refs/tags/v') != true - run: bash ./ci/upload-artifactory.sh - env: - ARTIFACTORY_URL: ${{ secrets.ARTIFACTORY_URL }} - ARTIFACTORY_USER: ${{ secrets.ARTIFACTORY_USER }} - ARTIFACTORY_PASS: ${{ secrets.ARTIFACTORY_PASS }} - - # This job builds wheels for macOS arm64 arch - build-macos-arm64: - needs: build-docstrings - runs-on: [self-hosted, macOS, ARM64] - steps: - # Cached locally on runner - # - name: Cache .hunter folder - # uses: actions/cache@v3 - # with: - # path: ~/.hunter - # key: hunter-macos-latest - - name: List .hunter cache directory - run: | - ls -a -l ~/.hunter/_Base/ || true - echo "PATH=$PATH" - - - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - - uses: actions/download-artifact@v3 - with: - name: 'docstrings' - path: docstrings - - name: Specify docstring to use while building the wheel - run: echo "DEPTHAI_PYTHON_DOCSTRINGS_INPUT=$PWD/docstrings/depthai_python_docstring.hpp" >> $GITHUB_ENV - - - name: Append build hash if not a tagged commit - if: startsWith(github.ref, 'refs/tags/v') != true - run: echo "BUILD_COMMIT_HASH=${{github.sha}}" >> $GITHUB_ENV - - # - name: Build and install depthai-core - # run: | - # echo "MACOSX_DEPLOYMENT_TARGET=11.0" >> $GITHUB_ENV - # cmake -S depthai-core/ -B build_core -D CMAKE_BUILD_TYPE=Release -D CMAKE_TOOLCHAIN_FILE=$PWD/cmake/toolchain/pic.cmake - # cmake --build build_core --target install --parallel 4 - # echo "DEPTHAI_INSTALLATION_DIR=$PWD/build_core/install/" >> $GITHUB_ENV - - - name: Build wheels - run: for PYBIN in {9..11}; do "python3.${PYBIN}" -m pip wheel . -w wheelhouse/ --verbose; done - - - name: Auditing wheels - run: delocate-wheel -v -w wheelhouse/audited wheelhouse/*.whl - - - name: Archive wheel artifacts - uses: actions/upload-artifact@v3 - with: - name: audited-wheels - path: wheelhouse/audited/ - - name: Deploy wheels to artifactory (if not a release) - if: startsWith(github.ref, 'refs/tags/v') != true - run: bash ./ci/upload-artifactory.sh - env: - ARTIFACTORY_URL: ${{ secrets.ARTIFACTORY_URL }} - ARTIFACTORY_USER: ${{ secrets.ARTIFACTORY_USER }} - ARTIFACTORY_PASS: ${{ secrets.ARTIFACTORY_PASS }} - - # This job builds wheels for x86_64 arch - build-linux-x86_64: - needs: build-docstrings - runs-on: ubuntu-latest - container: - image: quay.io/pypa/manylinux2014_x86_64:2022-10-30-402504a - env: - PLAT: manylinux2014_x86_64 - steps: - - name: Cache .hunter folder - uses: actions/cache@v3 - with: - path: ~/.hunter - key: hunter-x86_64 - - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - name: Installing libusb1-devel dependency - run: yum install -y --disableplugin=fastestmirror libusb1-devel - - name: Installing cmake dependency - run: | - /opt/python/cp38-cp38/bin/python3.8 -m pip install cmake - ln -s /opt/python/cp38-cp38/bin/cmake /bin/ - - name: Create folder structure - run: mkdir -p wheelhouse/audited/ - - - uses: actions/download-artifact@v3 - with: - name: 'docstrings' - path: docstrings - - name: Specify docstring to use while building the wheel - run: echo "DEPTHAI_PYTHON_DOCSTRINGS_INPUT=$PWD/docstrings/depthai_python_docstring.hpp" >> $GITHUB_ENV - - - name: Build and install depthai-core - run: | - cmake -S depthai-core/ -B build_core -D CMAKE_BUILD_TYPE=Release -D CMAKE_TOOLCHAIN_FILE=$PWD/cmake/toolchain/pic.cmake - cmake --build build_core --target install --parallel 4 - echo "DEPTHAI_INSTALLATION_DIR=$PWD/build_core/install/" >> $GITHUB_ENV - - - name: Append build hash if not a tagged commit - if: startsWith(github.ref, 'refs/tags/v') != true - run: echo "BUILD_COMMIT_HASH=${{github.sha}}" >> $GITHUB_ENV - - - name: Building source distribution - run: | - /opt/python/cp38-cp38/bin/python3.8 setup.py sdist --formats=gztar - mv dist/* wheelhouse/audited/ - - name: Build wheels - run: for PYBIN in /opt/python/cp3{6..11}*/bin; do "${PYBIN}/pip" wheel . -w ./wheelhouse/ --verbose; done - - name: Audit wheels - run: for whl in wheelhouse/*.whl; do auditwheel repair "$whl" --plat $PLAT -w wheelhouse/audited/; done - - name: Archive wheel artifacts - uses: actions/upload-artifact@v3 - with: - name: audited-wheels - path: wheelhouse/audited/ - - name: Deploy wheels to artifactory (if not a release) - if: startsWith(github.ref, 'refs/tags/v') != true - run: bash ./ci/upload-artifactory.sh - env: - ARTIFACTORY_URL: ${{ secrets.ARTIFACTORY_URL }} - ARTIFACTORY_USER: ${{ secrets.ARTIFACTORY_USER }} - ARTIFACTORY_PASS: ${{ secrets.ARTIFACTORY_PASS }} - - # This job builds wheels for ARM64 arch - build-linux-arm64: - needs: build-docstrings - runs-on: [self-hosted, linux, ARM64] - container: - image: quay.io/pypa/manylinux2014_aarch64:2022-10-30-402504a - env: - PLAT: manylinux2014_aarch64 - # Mount local hunter cache directory, instead of transfering to Github and back - volumes: - - /.hunter:/github/home/.hunter - steps: - - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - name: Installing libusb1-devel dependency - run: yum install -y --disableplugin=fastestmirror libusb1-devel - - name: Installing cmake dependency - run: | - /opt/python/cp38-cp38/bin/python3.8 -m pip install cmake - ln -s /opt/python/cp38-cp38/bin/cmake /bin/ - - name: Create folder structure - run: mkdir -p wheelhouse/audited/ - - - uses: actions/download-artifact@v3 - with: - name: 'docstrings' - path: docstrings - - name: Specify docstring to use while building the wheel - run: echo "DEPTHAI_PYTHON_DOCSTRINGS_INPUT=$PWD/docstrings/depthai_python_docstring.hpp" >> $GITHUB_ENV - - - name: Build and install depthai-core - run: | - cmake -S depthai-core/ -B build_core -D CMAKE_BUILD_TYPE=Release -D CMAKE_TOOLCHAIN_FILE=$PWD/cmake/toolchain/pic.cmake - cmake --build build_core --target install --parallel 4 - echo "DEPTHAI_INSTALLATION_DIR=$PWD/build_core/install/" >> $GITHUB_ENV - - - name: Append build hash if not a tagged commit - if: startsWith(github.ref, 'refs/tags/v') != true - run: echo "BUILD_COMMIT_HASH=${{github.sha}}" >> $GITHUB_ENV - - name: Building wheels - run: for PYBIN in /opt/python/cp3{6..11}*/bin; do "${PYBIN}/pip" wheel . -w ./wheelhouse/ --verbose; done - - name: Auditing wheels - run: for whl in wheelhouse/*.whl; do auditwheel repair "$whl" --plat $PLAT -w wheelhouse/audited/; done - - name: Archive wheel artifacts - uses: actions/upload-artifact@v3 - with: - name: audited-wheels - path: wheelhouse/audited/ - - name: Deploy wheels to artifactory (if not a release) - if: startsWith(github.ref, 'refs/tags/v') != true - run: bash ./ci/upload-artifactory.sh - env: - ARTIFACTORY_URL: ${{ secrets.ARTIFACTORY_URL }} - ARTIFACTORY_USER: ${{ secrets.ARTIFACTORY_USER }} - ARTIFACTORY_PASS: ${{ secrets.ARTIFACTORY_PASS }} - - release: - if: startsWith(github.ref, 'refs/tags/v') - needs: [pytest, build-linux-armhf, build-windows-x86_64, build-macos-x86_64, build-macos-arm64, build-linux-x86_64, build-linux-arm64] - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - # Get tag version - # TODO(themarpe) - Node12, has to be updated - - name: Get tag version - id: tag - uses: battila7/get-version-action@v2 - - - uses: actions/setup-python@v4 - with: - python-version: '3.8' - - - name: Check if version matches - run: python3.8 -c 'import find_version as v; exit(0) if "${{ steps.tag.outputs.version-without-v }}" == v.get_package_version() else exit(1)' - - # Create GitHub release - - uses: actions/create-release@master - id: createRelease - name: Create ${{ steps.tag.outputs.version-without-v }} depthai-core release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - body: | - ## Features - - ## Bug fixes - - ## Misc - - draft: true - - # Deploy to PyPi. Only when a commit is tagged - deploy-pypi: - if: startsWith(github.ref, 'refs/tags/v') - needs: [release] - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - uses: actions/download-artifact@v3 - with: - name: audited-wheels - path: wheelhouse/audited/ - - name: List files - run: ls -lah - - name: Run deploy to PyPi - run: bash ./ci/upload-pypi.sh - env: - PYPI_SERVER: ${{ secrets.PYPI_SERVER }} - PYPI_USER: ${{ secrets.PYPI_USER }} - PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - - notify_robothub: - if: startsWith(github.ref, 'refs/tags/v') - needs: [release] - runs-on: ubuntu-latest - steps: - - name: Repository Dispatch - uses: peter-evans/repository-dispatch@v2 - with: - token: ${{ secrets.REPO_ACCESS_TOKEN }} - repository: luxonis/robothub-apps - event-type: depthai-python-release - client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}' From 03cddc832c5c3e7ff4cf1fc0039ff1525e39b5b6 Mon Sep 17 00:00:00 2001 From: Matevz Morato Date: Thu, 10 Nov 2022 02:02:10 +0100 Subject: [PATCH 04/54] test --- .github/workflows/install_requirements.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index 54175c705..9d9935689 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -16,8 +16,7 @@ jobs: test-job: runs-on: ubuntu-latest - container: - - image: ubuntu:22.04 + container: ubuntu:22.04 steps: - name: Test one run: lsb_release -a From c01ef025dd7fa56f8f146cccd6752711aaff2b35 Mon Sep 17 00:00:00 2001 From: Matevz Morato Date: Thu, 10 Nov 2022 02:03:31 +0100 Subject: [PATCH 05/54] test --- .github/workflows/install_requirements.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index 9d9935689..555733071 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -19,6 +19,6 @@ container: ubuntu:22.04 steps: - name: Test one - run: lsb_release -a + run: echo "Hello from this container!" - name: Test two run: echo "Hello from here too!!!" From 302e06f899c2d1dea239069fbdd09bae6af03454 Mon Sep 17 00:00:00 2001 From: Matevz Morato Date: Thu, 10 Nov 2022 02:08:09 +0100 Subject: [PATCH 06/54] test --- .github/workflows/install_requirements.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index 555733071..5a8190220 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -22,3 +22,5 @@ run: echo "Hello from this container!" - name: Test two run: echo "Hello from here too!!!" + - name: Test three + run: hostnamectl From 7680a71a50754aca8902e589eea67bf887a8f004 Mon Sep 17 00:00:00 2001 From: Matevz Morato Date: Thu, 10 Nov 2022 02:09:48 +0100 Subject: [PATCH 07/54] test --- .github/workflows/install_requirements.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index 5a8190220..1caa2e442 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -23,4 +23,4 @@ - name: Test two run: echo "Hello from here too!!!" - name: Test three - run: hostnamectl + run: cat /etc/*release* From 3961f43129faf3a133903a14d4aa4e7ff6f6d123 Mon Sep 17 00:00:00 2001 From: Matevz Morato Date: Thu, 10 Nov 2022 02:21:07 +0100 Subject: [PATCH 08/54] test --- .github/workflows/install_requirements.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index 1caa2e442..ff97407a2 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -16,7 +16,8 @@ jobs: test-job: runs-on: ubuntu-latest - container: ubuntu:22.04 + container: + - image: ubuntu:22.04 steps: - name: Test one run: echo "Hello from this container!" From 7aac8b419ff56ffddc2073176e9377df8e2211fa Mon Sep 17 00:00:00 2001 From: Matevz Morato Date: Thu, 10 Nov 2022 02:28:30 +0100 Subject: [PATCH 09/54] test --- .github/workflows/install_requirements.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index ff97407a2..f20353bb5 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -16,8 +16,15 @@ jobs: test-job: runs-on: ubuntu-latest + strategy: + matrix: + image_name: + [ + ubuntu:22.04, + ubuntu:20.04 + ] container: - - image: ubuntu:22.04 + - image: ${{ matrix.image_name }} steps: - name: Test one run: echo "Hello from this container!" From c25574c21a1d22ac077522f5051fea5178f780bf Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Thu, 10 Nov 2022 02:46:41 +0100 Subject: [PATCH 10/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index f20353bb5..ab82a4cb8 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -17,18 +17,23 @@ test-job: runs-on: ubuntu-latest strategy: + fail-fast: false matrix: - image_name: - [ - ubuntu:22.04, - ubuntu:20.04 - ] + # The same array lives in test-windows.yml, so make any updates there too. + test-group: [1, 2, 3] +# strategy: +# matrix: +# image_name: +# [ +# ubuntu:22.04, +# ubuntu:20.04, +# ] container: - - image: ${{ matrix.image_name }} + image: ubuntu:20.04 steps: - name: Test one run: echo "Hello from this container!" - name: Test two - run: echo "Hello from here too!!!" + run: echo "Hello from here ${{ matrix.test-group }} too!!!" - name: Test three run: cat /etc/*release* From b7c12e9456309d9a327873d2e1493429169e635d Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Thu, 10 Nov 2022 02:51:06 +0100 Subject: [PATCH 11/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index ab82a4cb8..71447347a 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -20,7 +20,7 @@ fail-fast: false matrix: # The same array lives in test-windows.yml, so make any updates there too. - test-group: [1, 2, 3] + container_image: [ubuntu:18.04, ubuntu:20.04, ubuntu:22.04] # strategy: # matrix: # image_name: @@ -29,11 +29,11 @@ # ubuntu:20.04, # ] container: - image: ubuntu:20.04 + image: ${{ matrix.container_image }} steps: - name: Test one run: echo "Hello from this container!" - name: Test two - run: echo "Hello from here ${{ matrix.test-group }} too!!!" + run: echo "Hello from here too!!!" - name: Test three run: cat /etc/*release* From e048d55a525ebd6cde1366cfc9619105a89d2d76 Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Thu, 10 Nov 2022 02:52:13 +0100 Subject: [PATCH 12/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index 71447347a..e613e156a 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -20,7 +20,7 @@ fail-fast: false matrix: # The same array lives in test-windows.yml, so make any updates there too. - container_image: [ubuntu:18.04, ubuntu:20.04, ubuntu:22.04] + container_image: ["ubuntu:18.04", "ubuntu:20.04", "ubuntu:22.04"] # strategy: # matrix: # image_name: From ed2aa23bdec08861dedf0b71d32537551294410e Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Thu, 10 Nov 2022 02:56:09 +0100 Subject: [PATCH 13/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index e613e156a..a925f6720 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -20,7 +20,8 @@ fail-fast: false matrix: # The same array lives in test-windows.yml, so make any updates there too. - container_image: ["ubuntu:18.04", "ubuntu:20.04", "ubuntu:22.04"] + # container_image: ["ubuntu:18.04", "ubuntu:20.04", "ubuntu:22.04"] + container_image: ["ubuntu:22.04"] # strategy: # matrix: # image_name: From 804abfcc0484099577a69c1d37fcedb1aca68a04 Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Thu, 10 Nov 2022 03:04:24 +0100 Subject: [PATCH 14/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index a925f6720..d16230881 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -32,6 +32,7 @@ container: image: ${{ matrix.container_image }} steps: + - uses: actions/checkout@v3 - name: Test one run: echo "Hello from this container!" - name: Test two From 9704a038f96f67c3837590a9914ee2b06444c1cc Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Thu, 10 Nov 2022 03:07:20 +0100 Subject: [PATCH 15/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index d16230881..d17a9125f 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -35,6 +35,8 @@ - uses: actions/checkout@v3 - name: Test one run: echo "Hello from this container!" + - name: Test one and a half + run: ls - name: Test two run: echo "Hello from here too!!!" - name: Test three From beedced1a11260a3f1904f80952b9fbe3dc18007 Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Thu, 10 Nov 2022 03:09:16 +0100 Subject: [PATCH 16/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index d17a9125f..99b517275 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -37,6 +37,8 @@ run: echo "Hello from this container!" - name: Test one and a half run: ls + - name: Test two minus one third + run: cd examples && python install_requirements.py - name: Test two run: echo "Hello from here too!!!" - name: Test three From 333ec9aae8443699f5527140775dd6e29e4e6889 Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Thu, 10 Nov 2022 03:12:32 +0100 Subject: [PATCH 17/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index 99b517275..371bb2db6 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -37,6 +37,8 @@ run: echo "Hello from this container!" - name: Test one and a half run: ls + - name: Set up Python + uses: actions/setup-python@v4 - name: Test two minus one third run: cd examples && python install_requirements.py - name: Test two From 48a0ac27aedf3c7e1bd09c2ee7e77465ddd66d18 Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Thu, 10 Nov 2022 03:17:07 +0100 Subject: [PATCH 18/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index 371bb2db6..fb21a43d0 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -39,8 +39,10 @@ run: ls - name: Set up Python uses: actions/setup-python@v4 +# with: +# python-version: '3.8' - name: Test two minus one third - run: cd examples && python install_requirements.py + run: cd examples && python3 install_requirements.py - name: Test two run: echo "Hello from here too!!!" - name: Test three From 6f5e089c07b02f72bdab53e0fe8507161b58b8ba Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Thu, 10 Nov 2022 03:18:11 +0100 Subject: [PATCH 19/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index fb21a43d0..d75d02245 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -39,8 +39,8 @@ run: ls - name: Set up Python uses: actions/setup-python@v4 -# with: -# python-version: '3.8' + with: + python-version: '3.8' - name: Test two minus one third run: cd examples && python3 install_requirements.py - name: Test two From 9a929a493688c2dfd40d292f0c2dc75ce07d48a3 Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Thu, 10 Nov 2022 03:26:41 +0100 Subject: [PATCH 20/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index d75d02245..c358d8850 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -40,7 +40,7 @@ - name: Set up Python uses: actions/setup-python@v4 with: - python-version: '3.8' + python-version: '3.10' - name: Test two minus one third run: cd examples && python3 install_requirements.py - name: Test two From d727eb7eb3ff680d845e83b5eb794f4e900a4016 Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Thu, 10 Nov 2022 03:29:44 +0100 Subject: [PATCH 21/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index c358d8850..f9bff3e19 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -38,9 +38,10 @@ - name: Test one and a half run: ls - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.10' + run: apt install python3 sudo +# uses: actions/setup-python@v4 +# with: +# python-version: '3.10' - name: Test two minus one third run: cd examples && python3 install_requirements.py - name: Test two From 1ecc58c2bf4416ff95d7f4403d25b55c0817d58f Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Thu, 10 Nov 2022 03:32:36 +0100 Subject: [PATCH 22/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index f9bff3e19..68e44201c 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -38,7 +38,7 @@ - name: Test one and a half run: ls - name: Set up Python - run: apt install python3 sudo + run: apt update && apt install python3 sudo # uses: actions/setup-python@v4 # with: # python-version: '3.10' From 5e93f3c6f6c6977e4f8434a55d1043029fce82c0 Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Thu, 10 Nov 2022 03:35:36 +0100 Subject: [PATCH 23/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index 68e44201c..1869fb5a7 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -38,7 +38,7 @@ - name: Test one and a half run: ls - name: Set up Python - run: apt update && apt install python3 sudo + run: apt-get update && apt-get install python3 sudo # uses: actions/setup-python@v4 # with: # python-version: '3.10' From 7643fad380ed9062aaa643141752ceb107926175 Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Thu, 10 Nov 2022 03:36:49 +0100 Subject: [PATCH 24/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index 1869fb5a7..8afc16940 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -38,7 +38,7 @@ - name: Test one and a half run: ls - name: Set up Python - run: apt-get update && apt-get install python3 sudo + run: apt-get update -qq && apt-get -qq install python3 sudo # uses: actions/setup-python@v4 # with: # python-version: '3.10' From d89c24273ca88efbb267d3f128d044e5af0c2891 Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Thu, 10 Nov 2022 03:39:31 +0100 Subject: [PATCH 25/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index 8afc16940..e3245b495 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -38,7 +38,7 @@ - name: Test one and a half run: ls - name: Set up Python - run: apt-get update -qq && apt-get -qq install python3 sudo + run: apt-get update -qq && apt-get -qq install python3 python3-pip sudo # uses: actions/setup-python@v4 # with: # python-version: '3.10' From deef6075e8b027e6a00ee90047befcb14e730177 Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Thu, 10 Nov 2022 03:43:04 +0100 Subject: [PATCH 26/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index e3245b495..b5785b205 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -20,8 +20,7 @@ fail-fast: false matrix: # The same array lives in test-windows.yml, so make any updates there too. - # container_image: ["ubuntu:18.04", "ubuntu:20.04", "ubuntu:22.04"] - container_image: ["ubuntu:22.04"] + container_image: ["ubuntu:16.04", "ubuntu:18.04", "ubuntu:20.04", "ubuntu:22.04"] # strategy: # matrix: # image_name: From e61e2a5cc95cc0bff705c234bf9fde0d00108d27 Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Thu, 10 Nov 2022 03:55:22 +0100 Subject: [PATCH 27/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index b5785b205..031cf7195 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -36,11 +36,11 @@ run: echo "Hello from this container!" - name: Test one and a half run: ls + - name: Pogojni + if: ${{ matrix.container_image == "ubuntu:16.04" }} + run: echo issa me the old one - name: Set up Python run: apt-get update -qq && apt-get -qq install python3 python3-pip sudo -# uses: actions/setup-python@v4 -# with: -# python-version: '3.10' - name: Test two minus one third run: cd examples && python3 install_requirements.py - name: Test two From f82088a9a7f1cdb9886a863f1bbb4a338a73287d Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Thu, 10 Nov 2022 03:56:45 +0100 Subject: [PATCH 28/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index 031cf7195..aea674e26 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -37,7 +37,7 @@ - name: Test one and a half run: ls - name: Pogojni - if: ${{ matrix.container_image == "ubuntu:16.04" }} + if: ${{ matrix.container_image == 'ubuntu:16.04' }} run: echo issa me the old one - name: Set up Python run: apt-get update -qq && apt-get -qq install python3 python3-pip sudo From 1a67588b1715a7d29128ba1ccd1205ec80ea7d56 Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Thu, 10 Nov 2022 04:14:41 +0100 Subject: [PATCH 29/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 39 ++++++++-------------- 1 file changed, 13 insertions(+), 26 deletions(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index aea674e26..8b8165ca8 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -9,41 +9,28 @@ tags: - 'v*' - ################################### - ################################### - # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - test-job: + install_requirements-ubuntu: runs-on: ubuntu-latest strategy: - fail-fast: false matrix: - # The same array lives in test-windows.yml, so make any updates there too. - container_image: ["ubuntu:16.04", "ubuntu:18.04", "ubuntu:20.04", "ubuntu:22.04"] -# strategy: -# matrix: -# image_name: -# [ -# ubuntu:22.04, -# ubuntu:20.04, -# ] + container_image: ["ubuntu:18.04", "ubuntu:20.04", "ubuntu:22.04"] container: image: ${{ matrix.container_image }} steps: - uses: actions/checkout@v3 - - name: Test one - run: echo "Hello from this container!" - - name: Test one and a half - run: ls - - name: Pogojni - if: ${{ matrix.container_image == 'ubuntu:16.04' }} - run: echo issa me the old one - name: Set up Python run: apt-get update -qq && apt-get -qq install python3 python3-pip sudo - - name: Test two minus one third + - name: Install requirements run: cd examples && python3 install_requirements.py - - name: Test two - run: echo "Hello from here too!!!" - - name: Test three - run: cat /etc/*release* + install_requirements-ubuntu-old: + runs-on: ubuntu-latest + container: + image: ubuntu:16:04 + steps: + - uses: actions/checkout@v3 + - name: Set up Python + run: apt-get update -qq && apt-get -qq install python3.6 python3.6-pip sudo + - name: Install requirements + run: cd examples && python3.6 install_requirements.py From 1295a87f2d626c5980f104e10938b14d5c1037ec Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Thu, 10 Nov 2022 04:16:51 +0100 Subject: [PATCH 30/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index 8b8165ca8..ae1b272f3 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -27,7 +27,7 @@ install_requirements-ubuntu-old: runs-on: ubuntu-latest container: - image: ubuntu:16:04 + image: ubuntu:16.04 steps: - uses: actions/checkout@v3 - name: Set up Python From e2a67d1618cfd215d663f1e91248d07b10b4f5ef Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Thu, 10 Nov 2022 04:45:37 +0100 Subject: [PATCH 31/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index ae1b272f3..86ab5c2a6 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -34,3 +34,16 @@ run: apt-get update -qq && apt-get -qq install python3.6 python3.6-pip sudo - name: Install requirements run: cd examples && python3.6 install_requirements.py + install_requirements-fedora: + runs-on: ubuntu-latest + strategy: + matrix: + container_image: ["fedora:34", "fedora:35", "fedora:36"] + container: + image: ${{ matrix.container_image }} + steps: + - uses: actions/checkout@v3 + - name: Set up Python + run: yum update -y && yum install -y install python3 python3-pip sudo + - name: Install requirements + run: cd examples && python3 install_requirements.py From 6c161b24aa74dc76a548762496ab3e5afc1bced8 Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Thu, 10 Nov 2022 04:49:52 +0100 Subject: [PATCH 32/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index 86ab5c2a6..5bbf289e7 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -44,6 +44,6 @@ steps: - uses: actions/checkout@v3 - name: Set up Python - run: yum update -y && yum install -y install python3 python3-pip sudo + run: yum update -y && yum install -y python3 python3-pip sudo - name: Install requirements run: cd examples && python3 install_requirements.py From 70389c5228591010e1cebb1be133b5d67beacd38 Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Thu, 10 Nov 2022 04:57:19 +0100 Subject: [PATCH 33/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index 5bbf289e7..83941f9eb 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -24,16 +24,16 @@ run: apt-get update -qq && apt-get -qq install python3 python3-pip sudo - name: Install requirements run: cd examples && python3 install_requirements.py - install_requirements-ubuntu-old: - runs-on: ubuntu-latest - container: - image: ubuntu:16.04 - steps: - - uses: actions/checkout@v3 - - name: Set up Python - run: apt-get update -qq && apt-get -qq install python3.6 python3.6-pip sudo - - name: Install requirements - run: cd examples && python3.6 install_requirements.py +# install_requirements-ubuntu-old: +# runs-on: ubuntu-latest +# container: +# image: ubuntu:16.04 +# steps: +# - uses: actions/checkout@v3 +# - name: Set up Python +# run: apt-get update -qq && apt-get -qq install python3.6 python3.6-pip sudo +# - name: Install requirements +# run: cd examples && python3.6 install_requirements.py install_requirements-fedora: runs-on: ubuntu-latest strategy: From de4602f81ed9f52e5da4f52bbcac94cb7512304e Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Fri, 11 Nov 2022 00:45:55 +0100 Subject: [PATCH 34/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 61 +++++++++++++--------- 1 file changed, 36 insertions(+), 25 deletions(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index 83941f9eb..9ca474a06 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -11,39 +11,50 @@ # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - install_requirements-ubuntu: - runs-on: ubuntu-latest - strategy: - matrix: - container_image: ["ubuntu:18.04", "ubuntu:20.04", "ubuntu:22.04"] - container: - image: ${{ matrix.container_image }} - steps: - - uses: actions/checkout@v3 - - name: Set up Python - run: apt-get update -qq && apt-get -qq install python3 python3-pip sudo - - name: Install requirements - run: cd examples && python3 install_requirements.py -# install_requirements-ubuntu-old: +# install_requirements-ubuntu: +# runs-on: ubuntu-latest +# strategy: +# matrix: +# container_image: ["ubuntu:18.04", "ubuntu:20.04", "ubuntu:22.04"] +# container: +# image: ${{ matrix.container_image }} +# steps: +# - uses: actions/checkout@v3 +# - name: Set up Python +# run: apt-get update -qq && apt-get -qq install python3 python3-pip sudo +# - name: Install requirements +# run: cd examples && python3 install_requirements.py +# # install_requirements-ubuntu-old: +# # runs-on: ubuntu-latest +# # container: +# # image: ubuntu:16.04 +# # steps: +# # - uses: actions/checkout@v3 +# # - name: Set up Python +# # run: apt-get update -qq && apt-get -qq install python3.6 python3.6-pip sudo +# # - name: Install requirements +# # run: cd examples && python3.6 install_requirements.py +# install_requirements-fedora: # runs-on: ubuntu-latest +# strategy: +# matrix: +# container_image: ["fedora:34", "fedora:35", "fedora:36"] # container: -# image: ubuntu:16.04 +# image: ${{ matrix.container_image }} # steps: # - uses: actions/checkout@v3 # - name: Set up Python -# run: apt-get update -qq && apt-get -qq install python3.6 python3.6-pip sudo +# run: yum update -y && yum install -y python3 python3-pip sudo # - name: Install requirements -# run: cd examples && python3.6 install_requirements.py - install_requirements-fedora: +# run: cd examples && python3 install_requirements.py + install_dependencies: runs-on: ubuntu-latest strategy: matrix: - container_image: ["fedora:34", "fedora:35", "fedora:36"] + container_image: ["fedora:34", "fedora:35", "fedora:36", "ubuntu:18.04", "ubuntu:20.04", "ubuntu:22.04"] container: - image: ${{ matrix.container_image }} + image: ${{ matrix.container_image }} steps: - - uses: actions/checkout@v3 - - name: Set up Python - run: yum update -y && yum install -y python3 python3-pip sudo - - name: Install requirements - run: cd examples && python3 install_requirements.py + - name: Install sudo + - run: echo "Hello from the container" + From 773988fc0447a2aba86bc490fc456d25d2dbf368 Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Fri, 11 Nov 2022 00:48:27 +0100 Subject: [PATCH 35/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 36 ---------------------- 1 file changed, 36 deletions(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index 9ca474a06..3fe3befdb 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -11,42 +11,6 @@ # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: -# install_requirements-ubuntu: -# runs-on: ubuntu-latest -# strategy: -# matrix: -# container_image: ["ubuntu:18.04", "ubuntu:20.04", "ubuntu:22.04"] -# container: -# image: ${{ matrix.container_image }} -# steps: -# - uses: actions/checkout@v3 -# - name: Set up Python -# run: apt-get update -qq && apt-get -qq install python3 python3-pip sudo -# - name: Install requirements -# run: cd examples && python3 install_requirements.py -# # install_requirements-ubuntu-old: -# # runs-on: ubuntu-latest -# # container: -# # image: ubuntu:16.04 -# # steps: -# # - uses: actions/checkout@v3 -# # - name: Set up Python -# # run: apt-get update -qq && apt-get -qq install python3.6 python3.6-pip sudo -# # - name: Install requirements -# # run: cd examples && python3.6 install_requirements.py -# install_requirements-fedora: -# runs-on: ubuntu-latest -# strategy: -# matrix: -# container_image: ["fedora:34", "fedora:35", "fedora:36"] -# container: -# image: ${{ matrix.container_image }} -# steps: -# - uses: actions/checkout@v3 -# - name: Set up Python -# run: yum update -y && yum install -y python3 python3-pip sudo -# - name: Install requirements -# run: cd examples && python3 install_requirements.py install_dependencies: runs-on: ubuntu-latest strategy: From 217500ce178d75f735b65166edece1dacb8215cf Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Fri, 11 Nov 2022 00:48:59 +0100 Subject: [PATCH 36/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index 3fe3befdb..6365837c9 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -20,5 +20,5 @@ image: ${{ matrix.container_image }} steps: - name: Install sudo - - run: echo "Hello from the container" + run: echo "Hello from the container" From b0614b1dc189139fab3e6708389404d5ad11bf2e Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Fri, 11 Nov 2022 01:07:49 +0100 Subject: [PATCH 37/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index 6365837c9..6e9dc0f44 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -19,6 +19,10 @@ container: image: ${{ matrix.container_image }} steps: - - name: Install sudo - run: echo "Hello from the container" + - name: Hello from fedora + if: startsWith(matrix.container_image, 'fedora') == true + run: echo "Hello from fedora" + - name: Hello from ubuntu + if: startsWith(matrix.container_image, 'ubuntu') == true + run: echo "Hello from ubuntu" From 2742fda1830f45fc1fd86b20103edc94ea30b9f6 Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Fri, 11 Nov 2022 01:21:46 +0100 Subject: [PATCH 38/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index 6e9dc0f44..c2b2f59e7 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -19,10 +19,12 @@ container: image: ${{ matrix.container_image }} steps: - - name: Hello from fedora + - uses: actions/checkout@v3 + - name: Install sudo if: startsWith(matrix.container_image, 'fedora') == true - run: echo "Hello from fedora" - - name: Hello from ubuntu + run: yum update -y && yum install -y python3 python3-pip sudo + - name: Install sudo if: startsWith(matrix.container_image, 'ubuntu') == true - run: echo "Hello from ubuntu" - + run: apt-get update -qq && apt-get -qq install sudo + - name: Install dependencies + run: bash docs/source/_static/install_dependencies.sh From 491b086907e534f0207bcb3df1843eed843e821e Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Fri, 11 Nov 2022 01:28:37 +0100 Subject: [PATCH 39/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index c2b2f59e7..c156f53f3 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -22,9 +22,9 @@ - uses: actions/checkout@v3 - name: Install sudo if: startsWith(matrix.container_image, 'fedora') == true - run: yum update -y && yum install -y python3 python3-pip sudo + run: yum update -y && yum install -y python3 python3-pip sudo lsb-release - name: Install sudo if: startsWith(matrix.container_image, 'ubuntu') == true - run: apt-get update -qq && apt-get -qq install sudo + run: apt-get update -qq && apt-get -qq install sudo lsb-release - name: Install dependencies run: bash docs/source/_static/install_dependencies.sh From 86e99960b03c1ffbe6c6c566a99e22e8324742d8 Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Fri, 11 Nov 2022 01:30:11 +0100 Subject: [PATCH 40/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index c156f53f3..c9548e7e7 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -22,7 +22,7 @@ - uses: actions/checkout@v3 - name: Install sudo if: startsWith(matrix.container_image, 'fedora') == true - run: yum update -y && yum install -y python3 python3-pip sudo lsb-release + run: yum update -y && yum install -y python3 python3-pip sudo - name: Install sudo if: startsWith(matrix.container_image, 'ubuntu') == true run: apt-get update -qq && apt-get -qq install sudo lsb-release From 7cf82b72d904e0d8bd55bada397e6237a09e65c7 Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Fri, 11 Nov 2022 01:42:21 +0100 Subject: [PATCH 41/54] Update install_dependencies.sh --- docs/source/_static/install_dependencies.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/_static/install_dependencies.sh b/docs/source/_static/install_dependencies.sh index 9267743d1..0785631d5 100755 --- a/docs/source/_static/install_dependencies.sh +++ b/docs/source/_static/install_dependencies.sh @@ -172,7 +172,7 @@ elif [ -f /etc/os-release ]; then # Allow all users to read and write to Myriad X devices echo "Installing udev rules..." echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="03e7", MODE="0666"' | sudo tee /etc/udev/rules.d/80-movidius.rules > /dev/null - sudo udevadm control --reload-rules && sudo udevadm trigger + # sudo udevadm control --reload-rules && sudo udevadm trigger else echo "ERROR: Host not supported" exit 99 From e8613a4a76dea3bd851a3b693c779aaef1d4156d Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Fri, 11 Nov 2022 21:01:06 +0100 Subject: [PATCH 42/54] Update install_dependencies.sh --- docs/source/_static/install_dependencies.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/_static/install_dependencies.sh b/docs/source/_static/install_dependencies.sh index 0785631d5..9267743d1 100755 --- a/docs/source/_static/install_dependencies.sh +++ b/docs/source/_static/install_dependencies.sh @@ -172,7 +172,7 @@ elif [ -f /etc/os-release ]; then # Allow all users to read and write to Myriad X devices echo "Installing udev rules..." echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="03e7", MODE="0666"' | sudo tee /etc/udev/rules.d/80-movidius.rules > /dev/null - # sudo udevadm control --reload-rules && sudo udevadm trigger + sudo udevadm control --reload-rules && sudo udevadm trigger else echo "ERROR: Host not supported" exit 99 From 47cbe02a4c348018530914b748a93be754a16a9e Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Fri, 11 Nov 2022 21:05:57 +0100 Subject: [PATCH 43/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index c9548e7e7..df85a7586 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -15,7 +15,8 @@ runs-on: ubuntu-latest strategy: matrix: - container_image: ["fedora:34", "fedora:35", "fedora:36", "ubuntu:18.04", "ubuntu:20.04", "ubuntu:22.04"] +# container_image: ["fedora:34", "fedora:35", "fedora:36", "ubuntu:18.04", "ubuntu:20.04", "ubuntu:22.04"] + container_image: ["fedora:35"] container: image: ${{ matrix.container_image }} steps: From 5e0fcbe509a053eec97701e65dafcf3ec41ffb28 Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Fri, 11 Nov 2022 23:12:00 +0100 Subject: [PATCH 44/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index df85a7586..e4c30309d 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -28,4 +28,6 @@ if: startsWith(matrix.container_image, 'ubuntu') == true run: apt-get update -qq && apt-get -qq install sudo lsb-release - name: Install dependencies - run: bash docs/source/_static/install_dependencies.sh + run: | + sed '/udevadm control --reload-rules && sudo udevadm trigger/d' > tmp_script.sh + bash tmp_script.sh From 255824e1dbb48b2a80cbb8174d8a4fe901af63e5 Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Fri, 11 Nov 2022 23:29:35 +0100 Subject: [PATCH 45/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index e4c30309d..6dd53c806 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -29,5 +29,5 @@ run: apt-get update -qq && apt-get -qq install sudo lsb-release - name: Install dependencies run: | - sed '/udevadm control --reload-rules && sudo udevadm trigger/d' > tmp_script.sh + sed '/udevadm control --reload-rules && sudo udevadm trigger/d' docs/source/_static/install_dependencies.sh > tmp_script.sh bash tmp_script.sh From c7a24456d8bb25fe1118d7d7f7880461c001c7de Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Sat, 12 Nov 2022 00:39:09 +0100 Subject: [PATCH 46/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index 6dd53c806..a5128f63e 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -15,8 +15,7 @@ runs-on: ubuntu-latest strategy: matrix: -# container_image: ["fedora:34", "fedora:35", "fedora:36", "ubuntu:18.04", "ubuntu:20.04", "ubuntu:22.04"] - container_image: ["fedora:35"] + container_image: ["fedora:34", "fedora:35", "fedora:36", "ubuntu:18.04", "ubuntu:20.04", "ubuntu:22.04"] container: image: ${{ matrix.container_image }} steps: From 6ede088ab841be9e1a62454d946c2342a6ec5cc4 Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Sat, 12 Nov 2022 01:04:21 +0100 Subject: [PATCH 47/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index a5128f63e..059e9c09e 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -16,6 +16,9 @@ strategy: matrix: container_image: ["fedora:34", "fedora:35", "fedora:36", "ubuntu:18.04", "ubuntu:20.04", "ubuntu:22.04"] + environment: + - TZ=America/New_York + - DEBIAN_FRONTEND=noninteractive container: image: ${{ matrix.container_image }} steps: From 9653492ad3830ca5ecae1cb0e9a6fdc15d483a1c Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Sat, 12 Nov 2022 01:09:25 +0100 Subject: [PATCH 48/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index 059e9c09e..43c177db9 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -16,11 +16,11 @@ strategy: matrix: container_image: ["fedora:34", "fedora:35", "fedora:36", "ubuntu:18.04", "ubuntu:20.04", "ubuntu:22.04"] - environment: - - TZ=America/New_York - - DEBIAN_FRONTEND=noninteractive container: image: ${{ matrix.container_image }} + env: + TZ: America/New_York + DEBIAN_FRONTEND: noninteractive steps: - uses: actions/checkout@v3 - name: Install sudo From 070dd334770aecada38c79e00b6aca55be04d3c2 Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Sat, 12 Nov 2022 02:03:54 +0100 Subject: [PATCH 49/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index 43c177db9..8bf578c5d 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -31,5 +31,6 @@ run: apt-get update -qq && apt-get -qq install sudo lsb-release - name: Install dependencies run: | + ln -snf /usr/share/zoneinfo/UTC /etc/localtime && echo UTC > /etc/timezone sed '/udevadm control --reload-rules && sudo udevadm trigger/d' docs/source/_static/install_dependencies.sh > tmp_script.sh bash tmp_script.sh From 45c2bd0c0a9df2445471b19ce0c4a0fac8c37cd9 Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Sat, 12 Nov 2022 02:29:25 +0100 Subject: [PATCH 50/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index 8bf578c5d..bfa980bb7 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -3,11 +3,8 @@ on: workflow_dispatch: push: - branches: - - main - - develop - tags: - - 'v*' + paths: + - 'docs/source/_static/install_dependencies.sh' # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: @@ -18,9 +15,6 @@ container_image: ["fedora:34", "fedora:35", "fedora:36", "ubuntu:18.04", "ubuntu:20.04", "ubuntu:22.04"] container: image: ${{ matrix.container_image }} - env: - TZ: America/New_York - DEBIAN_FRONTEND: noninteractive steps: - uses: actions/checkout@v3 - name: Install sudo From 2296e1ce9aff160cd3439533c01044791e12bcee Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Sat, 12 Nov 2022 02:31:53 +0100 Subject: [PATCH 51/54] Update install_dependencies.sh --- docs/source/_static/install_dependencies.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/source/_static/install_dependencies.sh b/docs/source/_static/install_dependencies.sh index 9267743d1..2328e0751 100755 --- a/docs/source/_static/install_dependencies.sh +++ b/docs/source/_static/install_dependencies.sh @@ -175,5 +175,6 @@ elif [ -f /etc/os-release ]; then sudo udevadm control --reload-rules && sudo udevadm trigger else echo "ERROR: Host not supported" + # exit 99 fi From 742a62c57f199b451463e8c03cef8a4e774f015b Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Mon, 14 Nov 2022 03:21:45 +0100 Subject: [PATCH 52/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index bfa980bb7..74a2434f7 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -12,7 +12,7 @@ runs-on: ubuntu-latest strategy: matrix: - container_image: ["fedora:34", "fedora:35", "fedora:36", "ubuntu:18.04", "ubuntu:20.04", "ubuntu:22.04"] + container_image: ["fedora:34", "fedora:35", "fedora:36", "ubuntu:16.04", "ubuntu:18.04", "ubuntu:20.04", "ubuntu:22.04"] container: image: ${{ matrix.container_image }} steps: From cfb3a4af693f183f1dbdbfa3c95e96fbf110989e Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Mon, 14 Nov 2022 03:51:00 +0100 Subject: [PATCH 53/54] Update install_requirements.yml --- .github/workflows/install_requirements.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml index 74a2434f7..5770272be 100644 --- a/.github/workflows/install_requirements.yml +++ b/.github/workflows/install_requirements.yml @@ -5,6 +5,7 @@ push: paths: - 'docs/source/_static/install_dependencies.sh' + - 'examples/install_requirements.py' # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: @@ -12,7 +13,7 @@ runs-on: ubuntu-latest strategy: matrix: - container_image: ["fedora:34", "fedora:35", "fedora:36", "ubuntu:16.04", "ubuntu:18.04", "ubuntu:20.04", "ubuntu:22.04"] + container_image: ["fedora:34", "fedora:35", "fedora:36", "ubuntu:18.04", "ubuntu:20.04", "ubuntu:22.04"] container: image: ${{ matrix.container_image }} steps: @@ -28,3 +29,6 @@ ln -snf /usr/share/zoneinfo/UTC /etc/localtime && echo UTC > /etc/timezone sed '/udevadm control --reload-rules && sudo udevadm trigger/d' docs/source/_static/install_dependencies.sh > tmp_script.sh bash tmp_script.sh + - name: Install example requirements + run: | + python3 examples/install_requirements.py From 93e50c20f95f8bc6d378eb805aa81454c00f3c1e Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Mon, 14 Nov 2022 04:01:06 +0100 Subject: [PATCH 54/54] Update install_requirements.py --- examples/install_requirements.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/install_requirements.py b/examples/install_requirements.py index 1bcd555fa..daf465df2 100755 --- a/examples/install_requirements.py +++ b/examples/install_requirements.py @@ -189,3 +189,5 @@ def hasWhitespace(string): SUGGESTION='echo "export OPENBLAS_CORETYPE=ARMV8" >> ~/.bashrc && source ~/.bashrc' print(f'{WARNING}WARNING:{LINE_CL} Need to set OPENBLAS_CORE_TYPE environment variable, otherwise opencv will fail with illegal instruction.') print(f'Run: {RED}{SUGGESTION}{LINE_CL}') + +#