Skip to content

Commit cdfa3bb

Browse files
package-verification is updated (build-check) (#21)
+ changes in "*.md" are ignored
1 parent 26481c2 commit cdfa3bb

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:
@@ -38,9 +43,34 @@ jobs:
3843
run: |
3944
black --check .
4045
41-
test:
46+
build-check:
4247
runs-on: ubuntu-latest
4348
needs: lint
49+
steps:
50+
- name: Checkout
51+
uses: actions/checkout@v6
52+
53+
- name: Set up Python 3.12
54+
uses: actions/setup-python@v6
55+
with:
56+
python-version: "3.12"
57+
58+
- name: Install build tools
59+
run: |
60+
python -m pip install --upgrade pip
61+
python -m pip install build twine
62+
63+
- name: Build package
64+
run: |
65+
python -m build
66+
67+
- name: Check package metadata
68+
run: |
69+
twine check dist/*
70+
71+
test:
72+
runs-on: ubuntu-latest
73+
needs: build-check
4474
strategy:
4575
fail-fast: false
4676
matrix:

0 commit comments

Comments
 (0)