Skip to content

Commit

Permalink
Fix CI warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sitic committed Mar 8, 2024
1 parent 82f55e8 commit c78709b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,16 @@ jobs:
os: [ubuntu-20.04, windows-2019, macos-12]

steps:
- uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4

- name: Build wheels
uses: pypa/cibuildwheel@v2.16.5
env:
CIBW_BUILD: "cp38-macosx* cp39-manylinux_x86_64 cp312-manylinux_x86_64 cp311-win_amd64" # Speed up CI by only building a subset of wheels

- uses: actions/upload-artifact@v3
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl
name: wheels-${{ matrix.os }}
19 changes: 13 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,33 @@ jobs:
os: [ubuntu-20.04, windows-2019, macos-12]

steps:
- uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4

- name: Build wheels
uses: pypa/cibuildwheel@v2.16.5

- uses: actions/upload-artifact@v3
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl
name: wheels-${{ matrix.os }}

build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4

- name: Build sdist
run: pipx run build --sdist

- uses: actions/upload-artifact@v3
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
path: dist/*.tar.gz
name: wheels-sdist

upload_pypi:
name: Upload to PyPI
Expand All @@ -47,10 +53,11 @@ jobs:
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: artifact
name: wheels-*
path: dist
merge-multiple: true

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fallback_version = "0.1.0"

[tool.cibuildwheel]
archs = ["auto64"] # 64-bit only
skip = "pp* *musllinux*" # disable PyPy, musl-based wheels, and Python 3.12 (waiting for dependencies to catch up)
skip = "pp* *musllinux*" # disable PyPy, musl-based wheels
test-requires = ["pytest", "opencv-python-headless"]
test-command = "pytest {project}/tests"

Expand Down

0 comments on commit c78709b

Please sign in to comment.