Skip to content

Commit 8575ce8

Browse files
committed
split build and release jobs
1 parent 6f26472 commit 8575ce8

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

.github/workflows/build.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
# Check all PR
8+
9+
jobs:
10+
build:
11+
name: tests
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: setup Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.12"
20+
- run: python -m pip install tox
21+
- name: Build package
22+
run: tox -e build

.github/workflows/build-release.yml renamed to .github/workflows/release.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
name: Build and Release
1+
name: Release
22

33
on:
44
push:
5-
branches: [main]
65
tags: ["*"]
7-
pull_request:
8-
# Check all PR
96

107
jobs:
118
build:

0 commit comments

Comments
 (0)