8000 CI: musllinux_x86_64 by andyfaff · Pull Request #22864 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

CI: musllinux_x86_64 #22864

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jan 20, 2023
Merged
Next Next commit
CI: musllinux_x86_64
  • Loading branch information
andyfaff committed Jan 19, 2023
commit 57dde1f084f66024d2ed8000d20b7ef63246aff3
63 changes: 63 additions & 0 deletions .github/workflows/linux_musl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Test musllinux_x86_64

on:
push:
branches:
- main
- maintenance/**
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
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
apk add openblas-dev openblas

# 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 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="you@example.com" 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
python -m pip install -r test_requirements.txt

# calculate version information. Note that this doesn't work when
# actions/checkout is used for the cloning.
python setup.py version
python runtests.py --show-build-log --cpu-baseline=native --debug-info --mode=full -- -rsx -v
0