Skip to content

Commit 554f771

Browse files
committed
Exclude coverage tests in scheduled CI runs
1 parent e65c276 commit 554f771

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/build_and_test.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ jobs:
6262
- name: Install build dependencies
6363
run: cpanm --local-lib ${GITHUB_WORKSPACE}/local Dist::Zilla Perl::Critic Perl::Tidy
6464
- name: Install coverage dependencies
65+
if: ${{ github.event_name != 'schedule' }}
6566
run: cpanm --local-lib ${GITHUB_WORKSPACE}/local Devel::Cover::Report::Coveralls Pod::Coverage::CountParents
6667
- name: Configure Dist::Zilla
6768
run: |
@@ -82,11 +83,18 @@ jobs:
8283
run: |
8384
cd build
8485
prove --timer --lib --recurse --jobs $(nproc) --shuffle xt
85-
- name: Run tests
86+
- name: Run tests with coverage
87+
if: ${{ github.event_name != 'schedule' }}
8688
run: |
8789
cd build
8890
HARNESS_PERL_SWITCHES=-MDevel::Cover=+ignore,^t/ prove --timer --lib --recurse --jobs $(nproc) --shuffle t
91+
- name: Run tests without coverage
92+
if: ${{ github.event_name == 'schedule' }}
93+
run: |
94+
cd build
95+
prove --timer --lib --recurse --jobs $(nproc) --shuffle t
8996
- name: Report coverage info to Coveralls
97+
if: ${{ github.event_name != 'schedule' }}
9098
run: |
9199
cd build
92100
cover -report coveralls

0 commit comments

Comments
 (0)