File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -14,21 +14,28 @@ jobs:
14
14
matrix :
15
15
python-version : [3.8, 3.9, '3.10', '3.x']
16
16
steps :
17
- - uses : actions/checkout@master
17
+ - name : Checkout code
18
+ uses : actions/checkout@v2
19
+
18
20
- name : Setup Python Matrix
19
21
uses : actions/setup-python@v5
20
22
with :
21
23
python-version : ${{ matrix.python-version }}
22
- - name : Install dependencies
24
+
25
+ - name : Install dependencies and pre-commit
23
26
run : |
24
27
python -m pip install --upgrade pip
25
28
pip install .[dev]
26
- - name : Lint codebase
27
- run : |
28
- pylint py_markdown_table
29
+ pip install pre-commit
30
+ pre-commit install # Install pre-commit hooks
31
+
32
+ - name : Run pre-commit hooks
33
+ run : pre-commit run --all-files
34
+
29
35
- name : Pytest and code coverage
30
36
run : |
31
37
pytest --cov=./py_markdown_table/ ./tests/tests.py --cov-report=xml
38
+
32
39
- name : Upload coverage to Codecov
33
40
uses : codecov/codecov-action@v4
34
41
with :
You can’t perform that action at this time.
0 commit comments