From 030ff14a4b188e39b899e1b7a19aac78e64afdc2 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 4 Oct 2023 13:09:43 +0200 Subject: [PATCH] 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 a9c15071e..68401696e 100644 --- a/.github/workflows/python_safety.yml +++ b/.github/workflows/python_safety.yml @@ -12,5 +12,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