Skip to content

Commit

Permalink
Use poetry auto env
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy-Grigg committed Feb 16, 2024
1 parent a8f4654 commit 7e8006a
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
# with:
Expand Down

0 comments on commit 7e8006a

Please sign in to comment.