Skip to content

Commit 1249ab3

Browse files
committed
Split out linting
1 parent ffc51bd commit 1249ab3

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

.github/workflows/lint.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: lint
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- name: Set up Python
13+
uses: actions/setup-python@v5
14+
with:
15+
python-version: "3.12"
16+
17+
- name: Check code formatting
18+
run: |
19+
make lint

.github/workflows/test.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Python package
1+
name: tests
22

33
on: [push, pull_request]
44

@@ -34,12 +34,6 @@ jobs:
3434
run: |
3535
make coverage
3636
37-
- name: Check code formatting
38-
if: matrix.python-version == env.primary-python-version
39-
# Includes flake8, black --check, and isort --check-only
40-
run: |
41-
make lint
42-
4337
- name: Upload to codecov.io
4438
# Only upload coverage report for single version
4539
if: matrix.python-version == env.primary-python-version

0 commit comments

Comments
 (0)