Skip to content

Commit

Permalink
cicd: introduce build-test.yml
Browse files Browse the repository at this point in the history
Mantaining file for building and publishing and building for testing is
complicated.
Let's split them.
  • Loading branch information
dkropachev committed Mar 5, 2025
1 parent 2cb73ff commit 279ba24
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,10 @@ on:
branches:
- master
- 'branch-**'
pull_request:
branches:
- master
paths-ignore:
- docs/*
- examples/*
- .gitignore
- '*.rst'
- '*.ini'
- LICENSE
- .github/dependabot.yml
- .github/pull_request_template.md
workflow_dispatch:

jobs:
build-and-publish:
if: "(!contains(github.event.pull_request.labels.*.name, 'disable-test-build')) || github.event_name == 'push' && endsWith(github.event.ref, 'scylla')"
uses: ./.github/workflows/lib-build-and-push.yml
with:
upload: ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch' ) && endsWith(github.event.ref, 'scylla') }}
upload: ${{ endsWith(github.event.ref, 'scylla') }}
23 changes: 23 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Test wheels building

on:
pull_request:
branches:
- master
paths-ignore:
- docs/*
- examples/*
- .gitignore
- '*.rst'
- '*.ini'
- LICENSE
- .github/dependabot.yml
- .github/pull_request_template.md

jobs:
test-wheels-build:
name: "Test wheels building"
if: "!contains(github.event.pull_request.labels.*.name, 'disable-test-build')"
uses: ./.github/workflows/lib-build-and-push.yml
with:
upload: false

0 comments on commit 279ba24

Please sign in to comment.