Skip to content

Commit aaad447

Browse files
committed
Move linting job to quality workflow
1 parent ea5aedd commit aaad447

File tree

2 files changed

+24
-25
lines changed

2 files changed

+24
-25
lines changed

.github/workflows/quality.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,27 @@ jobs:
3030

3131
- name: Perform CodeQL analysis
3232
uses: github/codeql-action/analyze@v1
33+
34+
linting:
35+
name: Linting
36+
runs-on: ubuntu-latest
37+
38+
steps:
39+
- name: Checkout
40+
uses: actions/[email protected]
41+
42+
- name: Set up Python
43+
uses: actions/[email protected]
44+
45+
- name: Hash Python version
46+
id: hash
47+
run: echo ::set-output name=hash::$(python --version | sha256sum | cut -d' ' -f1)
48+
49+
- name: Restore cache
50+
uses: actions/[email protected]
51+
with:
52+
path: ~/.cache/pre-commit
53+
key: pre-commit|${{ steps.hash.outputs.hash }}|${{ hashFiles('.pre-commit-config.yaml') }}
54+
55+
- name: Run pre-commit
56+
uses: pre-commit/[email protected]

.github/workflows/test.yml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -13,34 +13,9 @@ on:
1313
- '**.md'
1414

1515
jobs:
16-
pre-commit:
17-
name: Linting
18-
runs-on: ubuntu-latest
19-
20-
steps:
21-
- name: Checkout
22-
uses: actions/[email protected]
23-
24-
- name: Set up Python
25-
uses: actions/[email protected]
26-
27-
- name: Hash Python version
28-
id: hash
29-
run: echo ::set-output name=hash::$(python --version | sha256sum | cut -d' ' -f1)
30-
31-
- name: Restore cache
32-
uses: actions/[email protected]
33-
with:
34-
path: ~/.cache/pre-commit
35-
key: pre-commit|${{ steps.hash.outputs.hash }}|${{ hashFiles('.pre-commit-config.yaml') }}
36-
37-
- name: Run pre-commit
38-
uses: pre-commit/[email protected]
39-
4016
test:
4117
name: '${{ matrix.os_name }}: Python ${{ matrix.python }}'
4218
runs-on: ${{ matrix.os }}
43-
needs: pre-commit
4419

4520
strategy:
4621
fail-fast: false

0 commit comments

Comments
 (0)