Skip to content

Commit 826a61f

Browse files
committed
Lint on GA with pre-commit as per @kalekseev suggestion
1 parent 9743b85 commit 826a61f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/tests.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,22 @@ jobs:
5050
if: always() # always run even if the previous step fails
5151
with:
5252
report_paths: /home/runner/work/pytest-splinter/pytest-splinter/test-results/junit.xml
53+
54+
lint:
55+
runs-on: ubuntu-latest
56+
timeout-minutes: 10
57+
env:
58+
PYTHONPATH: "."
59+
steps:
60+
- uses: actions/checkout@v3
61+
- uses: actions/setup-python@v4
62+
with:
63+
python-version: "3.10"
64+
cache: 'pip'
65+
cache-dependency-path: 'setup.cfg'
66+
- uses: actions/cache@v3
67+
with:
68+
path: ~/.cache/pre-commit
69+
key: pre-commit|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
70+
- run: python -m pip install -e .[dev]
71+
- run: pre-commit run --show-diff-on-failure --color=always --all-files

0 commit comments

Comments
 (0)