-
Notifications
You must be signed in to change notification settings - Fork 663
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add aarch64 testing via CirrusCI (#4120)
Fixes #4112 Towards #4054 * Use .cirrus.star file for handling CirrusCI jobs * Add aarch64 entry for CirrusCI * Don't run certain jobs expecting readonly or permission restricted files when running as root (Issue #4112)
- Loading branch information
Showing
7 changed files
with
67 additions
and
15 deletions.
There are no files selected for viewing
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,18 @@ | ||
# See https://cirrus-ci.org/guide/programming-tasks/ for more information on | ||
# starlark CirrusCI files | ||
# Inspired by scipy's .cirrus.star script https://github.com/scipy/scipy/blob/main/.cirrus.star | ||
# In the spirit of ensuring this can also be freely used in derviative works by | ||
# the community, we release the contents of this file under the MIT license. | ||
|
||
|
||
load("cirrus", "env", "fs") | ||
|
||
|
||
def main(ctx): | ||
# Default case: don't do anything if not in the core repo | ||
# or if you're not targetting the develop branch | ||
if ((env.get("CIRRUS_REPO_FULL_NAME") != "MDAnalysis/mdanalysis") | ||
or (env.get("CIRRUS_BASE_BRANCH") != "develop")): | ||
return [] | ||
|
||
return fs.read("maintainer/ci/cirrus-ci.yml") |
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,31 @@ | ||
linux_aarch64_task: | ||
arm_container: | ||
image: python:latest | ||
cpu: 8 | ||
memory: 8G | ||
|
||
ci_script: | | ||
python3 --version | ||
python3 -m venv mda-dev | ||
source mda-dev/bin/activate | ||
python3 -m pip install ./package | ||
python3 -m pip install ./testsuite | ||
python3 -m pip install pytest-xdist | ||
python3 -m pytest -n 8 ./testsuite/MDAnalysisTests | ||
macos_arm64_task: | ||
macos_instance: | ||
image: ghcr.io/cirruslabs/macos-ventura-base:latest | ||
|
||
ci_script: | | ||
brew update | ||
brew install [email protected] | ||
/opt/homebrew/bin/python3 -m venv ~/py_311 | ||
source ~/py_311/bin/activate | ||
cd package | ||
python -m pip install . | ||
cd ../testsuite | ||
python -m pip install . | ||
python -m pip install pytest pytest-xdist | ||
python -m pytest -n auto MDAnalysisTests |
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