Skip to content

Commit

Permalink
ci: use PyAnsys doc formattor and code-style checker. (#3380)
Browse files Browse the repository at this point in the history
* ci: use PyAnsys doc formattor and code-style checker.

* Update vale.

* Updates.

* Update .vale.ini

* feat: simplicfy action

---------

Co-authored-by: Roberto Pastor Muela <[email protected]>
  • Loading branch information
prmukherj and RobPasMue authored Oct 10, 2024
1 parent 96d3a6f commit 91cfdda
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Install pre-commit
run: python -m pip install pre-commit

- name: Run pre-commit for docformatter
run: pre-commit run --hook-stage manual --all-files --show-diff-on-failure docformatter

- name: Running Vale
uses: errata-ai/vale-action@reviewdog
env:
Expand All @@ -69,6 +57,13 @@ jobs:
filter_mode: nofilter
fail_on_error: true

code-style:
name: Code style
runs-on: ubuntu-latest
steps:
- name: "Run PyAnsys code style checks"
uses: ansys/actions/code-style@v8

commit-style:
name: "Run commit style checks"
runs-on: ubuntu-latest
Expand Down

0 comments on commit 91cfdda

Please sign in to comment.