@@ -18,38 +18,17 @@ jobs:
18
18
python-version : ["3.12"]
19
19
20
20
steps :
21
- - uses : " actions/checkout@v3 "
21
+ - uses : " actions/checkout@v4 "
22
22
- uses : " actions/setup-python@v4"
23
23
with :
24
24
python-version : " ${{ matrix.python-version }}"
25
25
- name : " Install dependencies"
26
26
run : |
27
27
python -m pip install --upgrade pip poetry
28
28
poetry install --extras docs
29
- - name : " Run pyupgrade "
29
+ - name : " Run pre-commit hooks "
30
30
run : |
31
- poetry run pre-commit run pyupgrade --all-files
32
- - name : " Code formating (black)"
33
- run : |
34
- poetry run pre-commit run black --all-files
35
- - name : " Code formating (flake8)"
36
- run : |
37
- poetry run pre-commit run flake8 --all-files
38
- - name : " Order of imports (isort)"
39
- run : |
40
- poetry run pre-commit run isort --all-files
41
- # - name: "Docstring formating (docformatter)"
42
- # run: |
43
- # poetry run pre-commit run docformatter --all-files
44
- - name : " Potential security issues (bandit)"
45
- run : |
46
- poetry run pre-commit run bandit --all-files
47
- - name : " Documentation build (sphinx)"
48
- run : |
49
- poetry run sphinx-build docs/ generated_docs
50
- - name : " Typing checks (mypy)"
51
- run : |
52
- poetry run pre-commit run mypy --all-files
31
+ poetry run pre-commit run --all-files --verbose
53
32
54
33
tests :
55
34
name : " Python ${{ matrix.python-version}} on ${{ matrix.os }}"
61
40
matrix :
62
41
python-version : ["3.9", "3.10", "3.11", "3.12", "3.13", "pypy3.9"]
63
42
os : [ubuntu-latest, macos-latest, windows-latest]
64
- # Exclude example, in case needed again in the future:
65
- # exclude:
66
- # - python-version: pypy3.8
67
- # os: macos-latest
68
-
69
43
70
44
steps :
71
- - uses : " actions/checkout@v3 "
45
+ - uses : " actions/checkout@v4 "
72
46
- uses : " actions/setup-python@v4"
73
47
with :
74
48
python-version : " ${{ matrix.python-version }}"
0 commit comments