-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
500f67b
commit 7bc3478
Showing
1 changed file
with
13 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [ 3.7, 3.8, 3.9 ] | ||
python-version: [ 3.8, 3.11 ] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -52,7 +52,7 @@ jobs: | |
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/test_wheels' | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04, windows-2019, macos-10.15] | ||
os: [ubuntu-latest, windows-2019, macos-13] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -62,17 +62,18 @@ jobs: | |
uses: pypa/[email protected] | ||
env: | ||
CIBW_BEFORE_BUILD: pip install numpy==1.19.5 | ||
CIBW_BUILD: cp36-* cp37-* cp38-* | ||
CIBW_BUILD: cp38-* | ||
|
||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_BEFORE_BUILD: pip install numpy==1.21.6 | ||
CIBW_BUILD: cp39-* cp310-* | ||
CIBW_BUILD: cp39-* cp310-* cp311-* cp312-* | ||
CIBW_ARCHS_MACOS: x86_64 universal2 | ||
|
||
- uses: actions/upload-artifact@v2 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} | ||
path: ./wheelhouse/*.whl | ||
|
||
build_sdist: | ||
|
@@ -92,10 +93,12 @@ jobs: | |
- name: Build sdist | ||
run: | | ||
python setup.py sdist | ||
- uses: actions/upload-artifact@v2 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: cibw-sdist | ||
path: dist/*.tar.gz | ||
|
||
|
||
upload_pypi: | ||
needs: [build_wheels, build_sdist, test_code] | ||
runs-on: ubuntu-latest | ||
|
@@ -105,10 +108,12 @@ jobs: | |
# alternatively, to publish when a GitHub Release is created, use the following rule: | ||
# if: github.event_name == 'release' && github.event.action == 'published' | ||
steps: | ||
- uses: actions/download-artifact@v2 | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: artifact | ||
# unpacks all CIBW artifacts into dist/ | ||
pattern: cibw-* | ||
path: dist | ||
merge-multiple: true | ||
|
||
- uses: pypa/[email protected] | ||
with: | ||
|