Skip to content

Commit 279ba24

Browse files
committed
cicd: introduce build-test.yml
Mantaining file for building and publishing and building for testing is complicated. Let's split them.
1 parent 2cb73ff commit 279ba24

File tree

2 files changed

+25
-14
lines changed

2 files changed

+25
-14
lines changed

.github/workflows/build-push.yml

+2-14
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,10 @@ on:
55
branches:
66
- master
77
- 'branch-**'
8-
pull_request:
9-
branches:
10-
- master
11-
paths-ignore:
12-
- docs/*
13-
- examples/*
14-
- .gitignore
15-
- '*.rst'
16-
- '*.ini'
17-
- LICENSE
18-
- .github/dependabot.yml
19-
- .github/pull_request_template.md
8+
workflow_dispatch:
209

2110
jobs:
2211
build-and-publish:
23-
if: "(!contains(github.event.pull_request.labels.*.name, 'disable-test-build')) || github.event_name == 'push' && endsWith(github.event.ref, 'scylla')"
2412
uses: ./.github/workflows/lib-build-and-push.yml
2513
with:
26-
upload: ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch' ) && endsWith(github.event.ref, 'scylla') }}
14+
upload: ${{ endsWith(github.event.ref, 'scylla') }}

.github/workflows/build-test.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Test wheels building
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
paths-ignore:
8+
- docs/*
9+
- examples/*
10+
- .gitignore
11+
- '*.rst'
12+
- '*.ini'
13+
- LICENSE
14+
- .github/dependabot.yml
15+
- .github/pull_request_template.md
16+
17+
jobs:
18+
test-wheels-build:
19+
name: "Test wheels building"
20+
if: "!contains(github.event.pull_request.labels.*.name, 'disable-test-build')"
21+
uses: ./.github/workflows/lib-build-and-push.yml
22+
with:
23+
upload: false

0 commit comments

Comments
 (0)