Skip to content

Commit 58ecbc0

Browse files
committed
Fix YAML error, separate lint & test jobs
1 parent 4b0ddb3 commit 58ecbc0

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

.github/PULL_REQUEST_TEMPLATE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22

33
Please describe the feature(s) added, bug(s) fixed, etc here at a high level,
44
and go into detail in further paragraphs if necessary.
5-

.github/workflows/tests.yaml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
1-
name: Run Tests
2-
on: push
1+
name: Lint & test
2+
on: [push, pull_request]
33

44
jobs:
5+
linters:
6+
name: lint
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@master
10+
- name: Lint
11+
uses: abatilo/[email protected]
12+
with:
13+
python_version: 3.8
14+
poetry_version: 1.0
15+
args: run pre-commit run --all-files
516
pytest:
617
name: pytest
718
runs-on: ubuntu-latest
@@ -10,18 +21,18 @@ jobs:
1021
- name: Install
1122
uses: abatilo/[email protected]
1223
with:
13-
python_version: 3.8.3
24+
python_version: 3.8
1425
poetry_version: 1.0
1526
args: install
1627
- name: Lint
1728
uses: abatilo/[email protected]
1829
with:
19-
python_version: 3.8.3
30+
python_version: 3.8
2031
poetry_version: 1.0
2132
args: run pre-commit run --all-files
2233
- name: Run pytest
2334
uses: abatilo/[email protected]
2435
with:
25-
python_version: 3.8.3
36+
python_version: 3.8
2637
poetry_version: 1.0
2738
args: run pytest

0 commit comments

Comments
 (0)