From 782e812fc068dc81513b245fd25afecad6bce3a9 Mon Sep 17 00:00:00 2001 From: Ryan Littlefield Date: Tue, 4 Jun 2024 15:41:34 +0000 Subject: [PATCH] only run safety check on linux v2 --- .github/workflows/main.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 358f687..cfd7132 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,7 +15,13 @@ jobs: VALIDATE_PYTHON_BLACK: true DEFAULT_BRANCH: master GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - + safety-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: pyupio/safety-action@v1 + with: + api-key: ${{ secrets.SAFETY_API_KEY }} test: strategy: fail-fast: false @@ -37,10 +43,6 @@ jobs: - name: dependency checks run: | poetry check - - uses: pyupio/safety-action@v1 - with: - api-key: ${{ secrets.SAFETY_API_KEY }} - runs-on: ubuntu-latest - name: install dependencies run: | poetry install