forked from numpy/numpy
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (49 loc) · 1.93 KB
/
linux_musl.yml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Test musllinux_x86_64
on:
pull_request:
branches:
- main
- maintenance/**
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
musllinux_x86_64:
runs-on: ubuntu-latest
if: "github.repository == 'numpy/numpy'"
container:
# Use container used for building musllinux wheels
# it has git installed, all the pythons, etc
image: quay.io/pypa/musllinux_1_1_x86_64
steps:
- name: setup
run: |
apk update --quiet
# using git commands to clone because versioneer doesn't work when
# actions/checkout is used for the clone step in a container
git config --global --add safe.directory $PWD
if [ $GITHUB_EVENT_NAME != pull_request ]; then
git clone --recursive --branch=$GITHUB_REF_NAME https://github.com/${GITHUB_REPOSITORY}.git $GITHUB_WORKSPACE
git reset --hard $GITHUB_SHA
else
git clone --recursive https://github.com/${GITHUB_REPOSITORY}.git $GITHUB_WORKSPACE
git fetch origin $GITHUB_REF:my_ref_name
git checkout $GITHUB_BASE_REF
git -c user.email="[email protected]" merge --no-commit my_ref_name
fi
ln -s /usr/local/bin/python3.10 /usr/local/bin/python
- name: test musllinux_x86_64
run: |
python -m venv test_env
source test_env/bin/activate
# required for figuring out the system tags in openblas_support
pip install packaging
# install openblas by co-opting the CIBW setup script
RUNNER_OS=Linux sh tools/wheels/cibw_before_build.sh .
pip install -r build_requirements.txt
pip install pytest pytest-xdist hypothesis typing_extensions
# use meson to build and test
spin build
spin test -j auto