Skip to content

Commit cfa6b6e

Browse files
committed
Add build test for release and prerelease branches
1 parent 3163541 commit cfa6b6e

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/test-build.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Publish release
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- 'release/**'
7+
- 'prerelease/**'
8+
9+
jobs:
10+
test-build:
11+
name: Test build
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
with:
16+
token: ${{ secrets.GH_ACCESS_TOKEN_TOM }}
17+
18+
- id: get-version
19+
run: echo "version=$(echo ${{ github.head_ref }} | sed -E 's|^(release/|prerelease/)||')" >> "$GITHUB_OUTPUT"
20+
21+
- name: Use Node 22
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version: 22
25+
26+
- name: Install the latest version of uv
27+
uses: astral-sh/setup-uv@v3
28+
with:
29+
version: 'latest'
30+
31+
- name: Install just
32+
uses: extractions/setup-just@v2
33+
34+
- name: Install JS dependencies
35+
run: npm ci
36+
37+
- name: Build dash-bootstrap-components
38+
run: just build
39+
40+
- name: Run tests
41+
run: uv run --with py-dist/dash_bootstrap_components*.whl pytest --headless tests

0 commit comments

Comments
 (0)