Skip to content

Commit 87f7a95

Browse files
committed
Use wheelhouse directory and skip pypi specific builds
1 parent 2b2a328 commit 87f7a95

File tree

1 file changed

+27
-4
lines changed

1 file changed

+27
-4
lines changed

.github/workflows/release.yml

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ jobs:
3838
CIBW_ENVIRONMENT: USE_MYPYC=1
3939
CIBW_PLATFORM: ${{ matrix.platform }}
4040
CIBW_ARCHS: "auto"
41+
CIBW_BUILD: "cp3*"
42+
CIBW_TEST_REQUIRES: pytest~=8.3
43+
CIBW_TEST_COMMAND: pytest {package}/tests
4144
run: python -m cibuildwheel --output-dir wheelhouse
4245

4346
- name: Upload Artifacts
@@ -56,12 +59,12 @@ jobs:
5659
- name: Build Source
5760
run: |
5861
python -m pip install --upgrade build
59-
python -m build --sdist
62+
python -m build --sdist --outdir wheelhouse
6063
6164
- uses: actions/upload-artifact@v4
6265
with:
6366
name: openskill-sdist
64-
path: dist/*.tar.gz
67+
path: wheelhouse/*.tar.gz
6568

6669
Upload:
6770
needs: [Wheels, Source]
@@ -76,7 +79,27 @@ jobs:
7679
- uses: actions/download-artifact@v4
7780
with:
7881
pattern: openskill-*
79-
path: dist
82+
path: wheelhouse
8083
merge-multiple: true
8184

82-
- uses: pypa/gh-action-pypi-publish@release/v1
85+
- name: Checkout Code
86+
uses: actions/checkout@v4
87+
88+
- name: Set Up Python 3.13
89+
uses: actions/setup-python@v5
90+
with:
91+
python-version: "3.13"
92+
cache: 'pip'
93+
94+
- name: Upgrade Dependencies
95+
run: |
96+
python -m pip install --upgrade build
97+
python -m pip install --upgrade pip
98+
99+
- name: Build Project for Distribution
100+
run: python -m pip wheel -w wheelhouse .
101+
102+
- name: Publish Wheels to PyPi
103+
uses: pypa/gh-action-pypi-publish@release/v1
104+
with:
105+
packages-dir: wheelhouse/

0 commit comments

Comments
 (0)