-
Notifications
You must be signed in to change notification settings - Fork 33
50 lines (40 loc) · 1.02 KB
/
build-wheels.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Builds
on:
push:
branches:
- master
pull_request:
branches:
- master
# Run weekly at 1:23 UTC
schedule:
- cron: '23 1 * * 0'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v5
- name: Display Python version
run: python --version
- name: Build SDist and wheel
run: pipx run build
- name: Check metadata
run: pipx run twine check --strict dist/*
- name: List contents of sdist
run: python -m tarfile --list dist/*.tar.gz
- name: List contents of wheel
run: python -m zipfile --list dist/*.whl
- name: Upload to GitHub
uses: actions/upload-artifact@v4
with:
name: Packages
path: dist/*