Skip to content

Commit 14ba422

Browse files
Don't run tests on draft PRs (#979)
* Don't run tests on draft PRs * Also skip when creating draft pr * Update CHANGELOG and check if tests run while closed * Final commit?
1 parent 648bdfe commit 14ba422

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/coverage.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ on:
77
branches:
88
- 'master'
99
pull_request:
10+
types: [opened, synchronize, reopened, ready_for_review]
1011
branches:
1112
- 'master'
1213

1314
jobs:
1415

1516
test-coverage:
17+
if: (github.event_name != 'pull_request') || (github.event.pull_request.draft == false)
1618
runs-on: ubuntu-22.04
1719
strategy:
1820
fail-fast: true

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
### Fixed
99
- Fixed bug when accessing matrix variable attributes
1010
### Changed
11+
- Stopped tests from running in draft PRs
1112
### Removed
1213

1314
## 5.4.1 - 2024.02.24

0 commit comments

Comments
 (0)