generated from ansys/template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run steps manually on python container
- Loading branch information
1 parent
5ec918b
commit c87a405
Showing
1 changed file
with
31 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,12 +24,38 @@ jobs: | |
run: | | ||
apt update | ||
export DEBIAN_FRONTEND=noninteractive | ||
apt install -yq krb5-user lsb_release | ||
apt install -yq krb5-user | ||
- uses: ansys/actions/[email protected] | ||
with: | ||
skip-install: false | ||
python-version: "3.10" | ||
- name: "Create virtual environment" | ||
shell: bash | ||
run: | | ||
python -m pip install --upgrade pip poetry | ||
python -m venv .venv | ||
- name: "Install project (if required)" | ||
if: inputs.skip-install == 'false' | ||
shell: bash | ||
run: | | ||
source .venv/bin/activate | ||
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 | ||
# - uses: ansys/actions/[email protected] | ||
# with: | ||
# skip-install: false | ||
# python-version: "3.10" | ||
|
||
docs-style: | ||
name: Documentation Style Check | ||
|