From 4d07478c15803a515e2b7d67d873a6e6261d50b1 Mon Sep 17 00:00:00 2001 From: Jan Lebert Date: Sun, 10 Sep 2023 17:51:36 -0700 Subject: [PATCH] Add CI --- .github/workflows/build.yml | 39 +++++++++++++++++++++++++++++++++++++ setup.py | 2 +- 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..b492b49 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,39 @@ +name: Build python wheels + +on: + push: + branches: [main] + tags: + - '*' + pull_request: + +jobs: + build_wheels: + name: Build wheels on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-20.04, windows-2019, macos-10.15] + + steps: + - uses: actions/checkout@v3 + + - name: Build wheels + uses: pypa/cibuildwheel@v2.11.4 + + - uses: actions/upload-artifact@v3 + with: + path: ./wheelhouse/*.whl + + build_sdist: + name: Build source distribution + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Build sdist + run: pipx run build --sdist + + - uses: actions/upload-artifact@v3 + with: + path: dist/*.tar.gz diff --git a/setup.py b/setup.py index e431987..7e5075e 100644 --- a/setup.py +++ b/setup.py @@ -32,7 +32,7 @@ packages=find_packages(), install_requires=[ "numpy", - "matplotlib>=3.7.0", + "matplotlib", "scipy", "scikit-image", "scikit-video",