From 6eb6c4b745276e79874419a74ce5a34b083257ce Mon Sep 17 00:00:00 2001 From: Scott Esbrandt Date: Tue, 2 Apr 2024 01:13:23 -0400 Subject: [PATCH] chore: fix workflow --- .github/workflows/build.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7a3fae7..8fa8e41 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,7 +22,15 @@ jobs: env: POETRY_VIRTUALENVS_IN_PROJECT: true + - name: Cache the virtualenv + uses: actions/cache@v2 + with: + path: ./.venv + key: ${{ runner.os }}-venv-${{ hashFiles('**/poetry.lock') }} + - name: Run pytest run: | python -m poetry run pytest -v --ruff --ruff-format + env: + SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} \ No newline at end of file