Skip to content

Commit

Permalink
python_safety: Use setup-python to create a venv (#2847)
Browse files Browse the repository at this point in the history
- python_safety: Use setup-python to create a venv
- Run on Ubuntu Jammy
- Remove obsolete GRUB package hold
- Install only packages required for motionEye build

Co-authored-by: MichaIng <micha@dietpi.com>
  • Loading branch information
cclauss and MichaIng authored Oct 4, 2023
1 parent b687fe7 commit 192d210
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/python_safety.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ 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 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
gcc libcurl4-openssl-dev libssl-dev
- uses: actions/checkout@v4
- run: pip install --user safety .
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: pip install --upgrade pip setuptools
- run: pip install safety .
- run: safety check

0 comments on commit 192d210

Please sign in to comment.