Skip to content

Commit 117020a

Browse files
committed
update github flows file
1 parent b0c10cf commit 117020a

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.github/workflows/lint.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
name: Lint
22

33
on:
4-
push:
5-
branches:
6-
- main
4+
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
76

87
jobs:
98
build:
9+
if: github.event.pull_request.draft == false
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
@@ -16,4 +16,4 @@ jobs:
1616
- name: Run linter
1717
run: |
1818
pip install ruff
19-
ruff check
19+
ruff check

.github/workflows/test.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
name: Pytest
22

33
on:
4-
push:
5-
branches:
6-
- main
4+
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
76

87
jobs:
98
build:
9+
if: github.event.pull_request.draft == false
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
@@ -18,4 +18,3 @@ jobs:
1818
pip install poetry
1919
poetry install --with api --with dev
2020
poetry run pytest
21-

0 commit comments

Comments
 (0)