forked from rogerbinns/apsw
-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (51 loc) · 1.55 KB
/
build-testpypi.yml
File metadata and controls
64 lines (51 loc) · 1.55 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Build & Publish TEST pypi
on: workflow_dispatch
jobs:
binary:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, windows-11-arm, macos-15-intel, macos-14]
pyver: [cp310, cp311, cp312, cp313, cp314, cp314t]
steps:
- uses: actions/checkout@v6
- name: Build ${{ matrix.os }} ${{ matrix.pyver }}
uses: pypa/cibuildwheel@v3.4
env:
CIBW_BUILD: ${{ matrix.pyver }}-*
CIBW_BEFORE_BUILD: python -c "import shutil ; shutil.copyfile('tools/setup-pypi.cfg','setup.apsw')"
CIBW_TEST_COMMAND: python -m apsw.tests -v
APSW_HEAVY_DURATION: 2
- uses: actions/upload-artifact@v7
with:
name: dist-${{ matrix.os }}-${{ matrix.pyver }}
path: ./wheelhouse/*.whl
source:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Create source dist
run: python setup.py sdist --for-pypi
- uses: actions/upload-artifact@v7
with:
name: dist-source
path: ./dist/*
pypi_publish:
needs: [source, binary]
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Stage wheels
uses: actions/download-artifact@v8
with:
pattern: dist-*
merge-multiple: true
path: dist
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
verbose: true
skip-existing: true