From 552bc41afa62ce55b8d0e5fa7a80cab393d34c95 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 4 Oct 2023 13:09:43 +0200 Subject: [PATCH 1/5] python_safety: Use setup-python to create a venv --- .github/workflows/python_safety.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python_safety.yml b/.github/workflows/python_safety.yml index ddda9ad0a..4e353a111 100644 --- a/.github/workflows/python_safety.yml +++ b/.github/workflows/python_safety.yml @@ -13,5 +13,8 @@ jobs: - run: sudo DEBIAN_FRONTEND="noninteractive" apt-get -qq --no-install-recommends install curl gcc ffmpeg libcurl4-openssl-dev libssl-dev motion v4l-utils - uses: actions/checkout@v4 - - run: pip install --user safety . + - uses: actions/setup-python@v4 + with: + python-version: 3.x + - run: pip install safety . - run: safety check From cfc0d4a239bfbf0a0f7a2938a511ae96533bb6fc Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 4 Oct 2023 13:11:44 +0200 Subject: [PATCH 2/5] Update python_safety.yml --- .github/workflows/python_safety.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/python_safety.yml b/.github/workflows/python_safety.yml index 4e353a111..22bec8262 100644 --- a/.github/workflows/python_safety.yml +++ b/.github/workflows/python_safety.yml @@ -9,7 +9,6 @@ jobs: steps: - run: sudo apt-mark hold grub-efi-amd64-signed # GRUB does not always find the drive it was configured for - run: sudo apt-get -q update - - run: sudo DEBIAN_FRONTEND="noninteractive" apt-get -qq --no-install-recommends dist-upgrade - run: sudo DEBIAN_FRONTEND="noninteractive" apt-get -qq --no-install-recommends install curl gcc ffmpeg libcurl4-openssl-dev libssl-dev motion v4l-utils - uses: actions/checkout@v4 From ce570a1e891ba2f1157d47d69705da540b31913c Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 4 Oct 2023 13:14:04 +0200 Subject: [PATCH 3/5] Update python_safety.yml --- .github/workflows/python_safety.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/python_safety.yml b/.github/workflows/python_safety.yml index 22bec8262..35df9258e 100644 --- a/.github/workflows/python_safety.yml +++ b/.github/workflows/python_safety.yml @@ -15,5 +15,6 @@ jobs: - uses: actions/setup-python@v4 with: python-version: 3.x + - run: pip install --upgrade pip setuptools - run: pip install safety . - run: safety check From 8e21c9e55474942bcf94b82cd655a56fe27e4223 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 4 Oct 2023 13:16:42 +0200 Subject: [PATCH 4/5] Update python_safety.yml --- .github/workflows/python_safety.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python_safety.yml b/.github/workflows/python_safety.yml index 35df9258e..c3a238d8a 100644 --- a/.github/workflows/python_safety.yml +++ b/.github/workflows/python_safety.yml @@ -15,6 +15,6 @@ jobs: - uses: actions/setup-python@v4 with: python-version: 3.x - - run: pip install --upgrade pip setuptools + - run: pip install --upgrade pip setuptools - run: pip install safety . - run: safety check From 737267a9524565f6c4732917c7ce93b1d15d3ef9 Mon Sep 17 00:00:00 2001 From: MichaIng Date: Wed, 4 Oct 2023 23:31:47 +0200 Subject: [PATCH 5/5] Update python_safety.yml - Run on Ubuntu Jammy - Remove obsolete GRUB package hold - Install only packages required for motionEye build --- .github/workflows/python_safety.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python_safety.yml b/.github/workflows/python_safety.yml index c3a238d8a..dd15e352b 100644 --- a/.github/workflows/python_safety.yml +++ b/.github/workflows/python_safety.yml @@ -5,12 +5,11 @@ on: [pull_request, push] jobs: python_safety: if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login != github.event.pull_request.base.repo.owner.login - runs-on: 'ubuntu-20.04' + runs-on: 'ubuntu-22.04' steps: - - run: sudo apt-mark hold grub-efi-amd64-signed # GRUB does not always find the drive it was configured for - run: sudo apt-get -q update - run: sudo DEBIAN_FRONTEND="noninteractive" apt-get -qq --no-install-recommends install - curl gcc ffmpeg libcurl4-openssl-dev libssl-dev motion v4l-utils + gcc libcurl4-openssl-dev libssl-dev - uses: actions/checkout@v4 - uses: actions/setup-python@v4 with: