File: build.yml

package info (click to toggle)
python-hmmlearn 0.3.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 588 kB
  • sloc: python: 4,797; cpp: 321; makefile: 13
file content (42 lines) | stat: -rw-r--r-- 1,177 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: build

on: [push, pull_request]

jobs:

  style:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
    - name: Style
      run: |
        shopt -s globstar &&
        ! grep -E '.{80}' **/*.py

  build:
    strategy:
      matrix:
        os: [ubuntu-latest, macos-latest, windows-latest]
        cibw-build: ['cp38-*', 'cp39-*', 'cp310-*', 'cp311-*', 'cp312-*']
      fail-fast: false
    runs-on: ${{ matrix.os }}
    steps:
    - uses: actions/checkout@v3
    - uses: docker/setup-qemu-action@v2
      if: runner.os == 'Linux'
    - uses: pypa/cibuildwheel@v2.16.5
      env:
        CIBW_ENVIRONMENT: SETUPTOOLS_SCM_PRETEND_VERSION=0.3.2
        CIBW_BUILD: ${{ matrix.cibw-build }}
        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==7.4.4
        CIBW_TEST_COMMAND: python -mpytest --pyargs hmmlearn.tests {project}/doc
    - uses: actions/upload-artifact@v3
      with:
        name: wheels
        path: wheelhouse/*.whl
      if: ${{ always() }}