Skip to content

Commit 355fb0b

Browse files
committed
Update style check
1 parent 67dda28 commit 355fb0b

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

.github/workflows/ci_release.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ on:
1717
#│ │ │ │ │
1818
#* * * * *
1919

20+
env:
21+
ANSYS_VERSION: 232
22+
DOCUMENTATION_CNAME: 'dpf.docs.pyansys.com'
23+
MAIN_PYTHON_VERSION: '3.8'
24+
2025
jobs:
2126
debug:
2227
runs-on: ubuntu-latest
@@ -33,21 +38,15 @@ jobs:
3338
- uses: actions/checkout@v3
3439

3540
- name: "Setup Python"
36-
uses: actions/setup-python@v4.2.0
41+
uses: actions/setup-python@v4
3742
with:
38-
python-version: 3.8
39-
40-
- name: "Install style requirements"
41-
run: |
42-
pip install -r requirements/requirements_style.txt --disable-pip-version-check
43+
python-version: ${{ env.MAIN_PYTHON_VERSION }}
4344

44-
- name: "Codespell"
45-
run: |
46-
make codespell
45+
- name: "Install pre-commit"
46+
run: pip install pre-commit
4747

48-
- name: "flake8"
49-
run: |
50-
make flake8
48+
- name: "Run pre-commit"
49+
run: pre-commit run --all-files --show-diff-on-failure
5150

5251
tests:
5352
uses: ./.github/workflows/tests.yml

0 commit comments

Comments
 (0)