From 7e8006abd7a31ea78f4843a0b8e2106ebd4cfbf2 Mon Sep 17 00:00:00 2001 From: Andy Grigg Date: Fri, 16 Feb 2024 18:56:15 -0500 Subject: [PATCH] Use poetry auto env --- .github/workflows/ci_cd.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index caf5438a..df029f59 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -29,30 +29,22 @@ jobs: export DEBIAN_FRONTEND=noninteractive apt install -yq krb5-user - - name: "Create virtual environment" + - name: "Install project" shell: bash run: | - python -m pip install --upgrade pip poetry - python -m venv .venv - - - name: "Install project (if required)" - shell: bash - run: | - source .venv/bin/activate + python -m pip install poetry python -m poetry install - name: "Install pre-commit" shell: bash run: | - source .venv/bin/activate python -m pip install pre-commit pre-commit install - name: "Run pre-commit" shell: bash run: | - source .venv/bin/activate - pre-commit run --all-files --show-diff-on-failure + python -m poetry run -- pre-commit run --all-files --show-diff-on-failure # - uses: ansys/actions/code-style@v5.1 # with: