Skip to content

Update CI re: deprecated actions. #430

Update CI re: deprecated actions.

Update CI re: deprecated actions. #430

Workflow file for this run

name: build
on: [push, pull_request]
jobs:
style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Style
run: |
shopt -s globstar &&
! grep -E '.{80}' **/*.py
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
pytag: [cp38, cp39, cp310, cp311, cp312, cp313]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
if: runner.os == 'Linux'
- uses: pypa/cibuildwheel@v2.20.0
env:
CIBW_BUILD: '${{ matrix.pytag }}-*'
CIBW_SKIP: '*-musllinux_*'
CIBW_TEST_SKIP: '*-macosx_universal2:arm64'
CIBW_ARCHS_LINUX: 'x86_64 aarch64'
CIBW_ARCHS_MACOS: 'x86_64 universal2'
CIBW_ARCHS_WINDOWS: 'AMD64'
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: python -I -mpytest --pyargs hmmlearn.tests {project}/doc
CIBW_TEST_SKIP: 'cp313-win_amd64' # Cannot build sklearn on this config yet...

Check failure on line 37 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / build

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 37, Col: 9): 'CIBW_TEST_SKIP' is already defined
- uses: actions/upload-artifact@v4
with:
name: wheel-${{ matrix.os }}-${{ matrix.pytag }}
path: wheelhouse/*.whl
if: ${{ always() }}
merge-wheels:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/upload-artifact/merge@v4
with:
name: wheels