From 13daf208b2d276960623a9da5d938d6768b88a95 Mon Sep 17 00:00:00 2001 From: Marcelo Lotif Date: Thu, 22 Feb 2024 10:38:29 -0500 Subject: [PATCH] trying something different [7] --- .github/workflows/code_checks.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/code_checks.yml b/.github/workflows/code_checks.yml index a8b7f7c..76e8c07 100644 --- a/.github/workflows/code_checks.yml +++ b/.github/workflows/code_checks.yml @@ -27,8 +27,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.1.1 - - name: Install poetry - run: python3 -m pip install --upgrade pip && python3 -m pip install poetry + - name: Install and configure Poetry + uses: snok/install-poetry@v1 + with: + virtualenvs-create: true + virtualenvs-in-project: true - uses: actions/setup-python@v5.0.0 with: python-version: '3.10' @@ -36,11 +39,10 @@ jobs: - name: Install dependencies and check code run: | poetry env use '3.10' - poetry config virtualenvs.path ./venv/ + source .venv/bin/activate poetry install --with test --all-extras - source ./venv/bin/activate pre-commit run --all-files - name: pip-audit (gh-action-pip-audit) uses: pypa/gh-action-pip-audit@v1.0.8 with: - virtual-environment: ./venv/ + virtual-environment: .venv/