Skip to content

Commit 722ef1b

Browse files
package-verification is updated (build-check) (#354)
+ changes in "*.md" are ignored
1 parent 19020fc commit 722ef1b

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

.github/workflows/package-verification.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@ name: Run Package Verifications
66
on:
77
push:
88
branches: [ "master" ]
9+
paths-ignore:
10+
- "*.md"
11+
912
pull_request:
1013
branches: [ "master" ]
14+
paths-ignore:
15+
- "*.md"
1116

1217
jobs:
1318
lint:
@@ -35,9 +40,34 @@ jobs:
3540
run: |
3641
ruff check .
3742
38-
test:
43+
build-check:
3944
runs-on: ubuntu-latest
4045
needs: lint
46+
steps:
47+
- name: Checkout
48+
uses: actions/checkout@v6
49+
50+
- name: Set up Python 3.12
51+
uses: actions/setup-python@v6
52+
with:
53+
python-version: "3.12"
54+
55+
- name: Install build tools
56+
run: |
57+
python -m pip install --upgrade pip
58+
python -m pip install build twine
59+
60+
- name: Build package
61+
run: |
62+
python -m build
63+
64+
- name: Check package metadata
65+
run: |
66+
twine check dist/*
67+
68+
test:
69+
runs-on: ubuntu-latest
70+
needs: build-check
4171
strategy:
4272
fail-fast: false
4373
matrix:

0 commit comments

Comments
 (0)