[CI/CD] pre-commit autoupdate #4100
This file contains hidden or 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
| name: ubuntu_build | |
| on: [pull_request, push] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: {} | |
| jobs: | |
| build: | |
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login != github.event.pull_request.base.repo.owner.login | |
| strategy: | |
| matrix: | |
| dist: ['ubuntu-22.04', 'ubuntu-24.04', 'ubuntu-26.04', 'ubuntu-22.04-arm', 'ubuntu-24.04-arm', 'ubuntu-26.04-arm'] | |
| fail-fast: false | |
| runs-on: ${{ matrix.dist }} | |
| name: "Test on ${{ matrix.dist }}" | |
| steps: | |
| - name: Ubuntu Noble workarounds | |
| if: matrix.dist == 'ubuntu-24.04' || matrix.dist == 'ubuntu-24.04-arm' | |
| run: | | |
| # error: externally-managed-environment | |
| echo -e '[global]\nbreak-system-packages=true' | sudo tee /etc/pip.conf | |
| # ERROR: Cannot uninstall pip 24.0, RECORD file not found. Hint: The package was installed by debian. | |
| - run: sudo DEBIAN_FRONTEND="noninteractive" apt-get -qq autopurge python3-pip python3-setuptools python3-wheel python3-dev | |
| - run: sudo apt-get -q update | |
| - run: sudo DEBIAN_FRONTEND=noninteractive apt-get -qq --no-install-recommends install ca-certificates curl python3 | |
| - run: curl -sSfO 'https://bootstrap.pypa.io/get-pip.py' | |
| - run: sudo python3 get-pip.py | |
| - run: sudo python3 -m pip install --upgrade pip setuptools wheel | |
| - run: | | |
| REPO=$GITHUB_REPOSITORY BRANCH=$GITHUB_REF_NAME | |
| [ ${{ github.event_name }} = 'pull_request' ] && REPO=${{ github.event.pull_request.head.repo.full_name }} BRANCH=${{ github.event.pull_request.head.ref }} | |
| sudo python3 -m pip install "https://github.com/$REPO/archive/$BRANCH.tar.gz" | |
| - run: sudo motioneye_init --skip-apt-update | |
| - run: i=0; until ss -tln | grep 8765; do [ $i -le 10 ] || exit 0; sleep 1; i=$(expr $i + 1); done | |
| - run: sudo systemctl status motioneye | |
| - run: sudo systemctl is-active motioneye |