forked from scikit-learn/scikit-learn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI Migrate ARM tests to Github Actions (scikit-learn#30797)
Co-authored-by: Loïc Estève <[email protected]>
- Loading branch information
1 parent
9523006
commit 4ec5f69
Showing
13 changed files
with
62 additions
and
117 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Unit test for ARM | ||
permissions: | ||
contents: read | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'scikit-learn/scikit-learn' | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
cache: 'pip' | ||
- name: Install linters | ||
run: | | ||
source build_tools/shared.sh | ||
# Include pytest compatibility with mypy | ||
pip install pytest $(get_dep ruff min) $(get_dep mypy min) $(get_dep black min) cython-lint | ||
- name: Run linters | ||
run: ./build_tools/linting.sh | ||
- name: Run Meson OpenMP checks | ||
run: | | ||
pip install ninja meson scipy | ||
python build_tools/check-meson-openmp-dependencies.py | ||
run-unit-tests: | ||
name: Run unit tests | ||
runs-on: ubuntu-24.04-arm | ||
if: github.repository == 'scikit-learn/scikit-learn' | ||
needs: [lint] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- uses: mamba-org/setup-micromamba@v2 | ||
with: | ||
environment-file: build_tools/github/pymin_conda_forge_arm_linux-aarch64_conda.lock | ||
environment-name: ci | ||
cache-environment: true | ||
|
||
- name: Build and run tests | ||
shell: bash -el {0} | ||
run: bash build_tools/github/build_test_arm.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters