|
22 | 22 | platform: |
23 | 23 | - runner: ubuntu-22.04 |
24 | 24 | target: x86_64 |
25 | | - - runner: ubuntu-22.04 |
| 25 | + - runner: ubuntu-22.04-arm |
26 | 26 | target: aarch64 |
27 | 27 | steps: |
28 | 28 | - uses: actions/checkout@v4 |
|
37 | 37 | 3.13 |
38 | 38 | - name: Build wheels |
39 | 39 | uses: PyO3/maturin-action@v1 |
40 | | - if: ${{ matrix.platform.target == 'aarch64' }} |
41 | | - with: |
42 | | - target: ${{ matrix.platform.target }} |
43 | | - args: --release --out dist --interpreter 3.10 3.11 3.12 --zig |
44 | | - sccache: ${{ !startsWith(github.ref, 'refs/tags/') }} |
45 | | - manylinux: auto |
46 | | - before-script-linux: | |
47 | | - dnf install -y clang-libs clang || sudo apt install llvm-dev libclang-dev clang |
48 | | - - name: Build wheels |
49 | | - uses: PyO3/maturin-action@v1 |
50 | | - if: ${{ matrix.platform.target == 'x86_64' }} |
51 | 40 | with: |
52 | 41 | target: ${{ matrix.platform.target }} |
53 | 42 | args: --release --out dist --interpreter 3.10 3.11 3.12 3.13 --zig |
|
61 | 50 | name: wheels-linux-${{ matrix.platform.target }} |
62 | 51 | path: dist |
63 | 52 | - name: pytest |
64 | | - if: ${{ startsWith(matrix.platform.target, 'x86_64') }} |
65 | 53 | shell: bash |
66 | 54 | run: | |
67 | 55 | set -e |
|
75 | 63 | pytest -m "pymc and not flow" |
76 | 64 | uv pip install 'nutpie[all]' --find-links dist --force-reinstall |
77 | 65 | pytest -m flow |
78 | | - - name: pytest |
79 | | - if: ${{ !startsWith(matrix.platform.target, 'x86') && matrix.platform.target != 'ppc64' }} |
80 | | - uses: uraimo/run-on-arch-action@v3 |
81 | | - with: |
82 | | - arch: ${{ matrix.platform.target }} |
83 | | - distro: ubuntu22.04 |
84 | | - githubToken: ${{ github.token }} |
85 | | - install: | |
86 | | - apt-get update |
87 | | - apt-get install -y --no-install-recommends python3 python3-pip curl make clang build-essential python3-dev |
88 | | - curl -LsSf https://astral.sh/uv/install.sh | sh |
89 | | - source $HOME/.local/bin/env |
90 | | - run: | |
91 | | - set -e |
92 | | - source $HOME/.local/bin/env |
93 | | - uv pip install --system -U pip pytest pytest-timeout |
94 | | - uv pip install --system 'nutpie[all]' --find-links dist --force-reinstall |
95 | | - pytest -m "not flow" # Skip flow tests, they are slow on emulated platforms |
96 | 66 |
|
97 | 67 | # pyarrow doesn't currently seem to work on musllinux |
98 | 68 | #musllinux: |
|
0 commit comments