|
9 | 9 | - develop |
10 | 10 |
|
11 | 11 | jobs: |
12 | | - pre-commit: |
13 | | - name: Format |
14 | | - runs-on: ubuntu-latest |
15 | | - steps: |
16 | | - - uses: actions/checkout@v1 |
17 | | - with: |
18 | | - submodules: true |
19 | | - - uses: actions/setup-python@v2 |
20 | | - - uses: pre-commit/[email protected] |
21 | | - with: |
22 | | - extra_args: -a docker-clang-format --hook-stage manual |
23 | | - |
24 | | - clang-tidy: |
25 | | - name: Clang-Tidy |
26 | | - runs-on: ubuntu-latest |
27 | | - container: silkeh/clang:10 |
28 | | - |
29 | | - steps: |
30 | | - - uses: actions/checkout@v1 |
31 | | - with: |
32 | | - submodules: true |
33 | | - |
34 | | - - name: Install requirements |
35 | | - run: apt-get update && apt-get install -y python3-dev python3-pip |
36 | | - |
37 | | - - name: Install extra requirements |
38 | | - run: python3 -m pip install setuptools_scm toml |
39 | | - |
40 | | - - name: Configure |
41 | | - run: cmake -S . -B build -DCMAKE_CXX_CLANG_TIDY="$(which clang-tidy);--warnings-as-errors=*" |
42 | | - |
43 | | - - name: Build |
44 | | - run: cmake --build build -j 2 |
45 | | - |
46 | | - |
47 | | - cmake: |
48 | | - runs-on: ubuntu-latest |
49 | | - strategy: |
50 | | - fail-fast: false |
51 | | - matrix: |
52 | | - python-version: ["3.6", "3.9", "pypy3"] |
53 | | - include: |
54 | | - - python-version: "3.8" |
55 | | - cmake-extras: "-DCMAKE_CXX_STANDARD=17" |
56 | | - |
57 | | - name: CMake Python ${{ matrix.python-version }} |
58 | | - |
59 | | - steps: |
60 | | - - uses: actions/checkout@v1 |
61 | | - with: |
62 | | - submodules: true |
63 | | - |
64 | | - - uses: actions/setup-python@v2 |
65 | | - with: |
66 | | - python-version: ${{ matrix.python-version }} |
67 | | - |
68 | | - - name: Install python tools |
69 | | - run: python -m pip install -r dev-requirements.txt pytest-github-actions-annotate-failures |
70 | | - |
71 | | - - name: Configure |
72 | | - run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DBOOST_HISTOGRAM_ERRORS=ON ${{ matrix.cmake-extras }} |
73 | | - |
74 | | - - name: Build |
75 | | - run: cmake --build build -j 2 |
76 | | - |
77 | | - - name: Test |
78 | | - working-directory: ./build |
79 | | - run: python -m pytest -ra |
80 | 12 |
|
81 | 13 | build_wheels: |
82 | 14 | name: Wheels on ${{ matrix.os }} |
83 | 15 | runs-on: ${{ matrix.os }} |
84 | 16 | strategy: |
85 | 17 | matrix: |
86 | | - os: [ubuntu-latest, windows-latest, macos-latest] |
| 18 | + os: [macos-latest] |
87 | 19 |
|
88 | 20 | steps: |
89 | 21 | - uses: actions/checkout@v1 |
90 | 22 | with: |
91 | 23 | submodules: true |
92 | 24 |
|
93 | | - - uses: pypa/cibuildwheel@v1.11.0 |
| 25 | + - uses: henryiii/cibuildwheel@henryiii/feat/py38u |
94 | 26 | env: |
95 | | - CIBW_BUILD: cp38-win_amd64 cp36-manylinux_i686 cp37-macosx_x86_64 |
| 27 | + CIBW_BUILD: cp38-* |
| 28 | + CIBW_ARCHS: all |
96 | 29 | CIBW_TEST_EXTRAS: test |
97 | 30 | CIBW_TEST_COMMAND: pytest {project}/tests |
98 | 31 | CIBW_BUILD_VERBOSITY: 1 |
| 32 | + MACOSX_DEPLOYMENT_TARGET: 10.12 |
99 | 33 |
|
100 | 34 | - uses: actions/upload-artifact@v2 |
101 | 35 | with: |
|
0 commit comments