Skip to content

Commit

Permalink
update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielBok committed Nov 16, 2024
1 parent 7d67d76 commit 9c886ee
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 19 deletions.
32 changes: 18 additions & 14 deletions .github/workflows/test-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
python-version: [ 3.9, '3.10', '3.11', '3.12' ]
python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13' ]

steps:
- name: Checkout Repository
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
pip install -r build-requirements.txt
- name: Build Extensions
run: python setup.py build_ext --inplace
run: pip install -e .

- name: Test package
run: python -m pytest tests/
Expand All @@ -65,7 +65,7 @@ jobs:
pip install wheel coveralls
coveralls --service=github
build-src:
build-sdist:
name: Build SDist (Source)
needs: test-code
runs-on: ubuntu-latest
Expand All @@ -78,11 +78,13 @@ jobs:
with:
python-version: '3.10'

- name: Package source distribution
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r build-requirements.txt
python setup.py sdist
pip install build wheel numpy cython scipy
- name: Package source distribution
run: python -m build sdist sdist

- name: List items
run: |
Expand All @@ -97,7 +99,7 @@ jobs:
if-no-files-found: error

build-wheel:
name: Build wheels
name: Build wheels on ${{ matrix.os }}
needs: test-code
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -113,18 +115,20 @@ jobs:
with:
python-version: '3.10'

- name: Install cibuildwheel
run: |
python -m pip install --upgrade pip
pip install cibuildwheel
- name: Build BDist Package
env:
# specify python environments. Skip 32-bit builds
CIBW_BUILD: cp39-* cp310-* cp311-* cp312-*
CIBW_BUILD: cp39-* cp310-* cp311-* cp312-* cp313-*
CIBW_SKIP: "*-win32 *-manylinux_i686 *-musllinux_*"
# install dependencies, these are the minimum dependencies for building the wheels
CIBW_BEFORE_BUILD: pip install numpy cython scipy
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
run: |
python -m pip install --upgrade pip
pip install cibuildwheel
python -m cibuildwheel --output-dir dist
run: python -m cibuildwheel --output-dir dist

- name: List items
run: |
Expand All @@ -142,12 +146,12 @@ jobs:
# by running a mock import of copulae
install-package:
name: Test package installation
needs: [ build-src, build-wheel ]
needs: [ build-sdist, build-wheel ]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
python-version: [ 3.9, '3.10', '3.11', '3.12' ]
python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13' ]
# ext: [ tar.gz, whl ]
ext: [ whl ]

Expand Down
10 changes: 5 additions & 5 deletions build-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
cython>=0.29
numpy>=1.24
cython>=3.0
numpy>=2.0
pandas>=2.0
pytest>=7
pytest-cov>=2.10
scikit-learn>=1.2
pytest>=8
pytest-cov>=6
scikit-learn>=1.5
scipy>=1.10
setuptools>=67
statsmodels>=0.14
Expand Down

0 comments on commit 9c886ee

Please sign in to comment.