6 Star 26 Fork 13

Gitee 极速下载 / scikit-learn

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/scikit-learn/scikit-learn
克隆/下载
.cirrus.star 1.41 KB
一键复制 编辑 原始数据 按行查看 历史
# This script uses starlark for configuring when a cirrus CI job runs:
# https://cirrus-ci.org/guide/programming-tasks/
load("cirrus", "env", "fs", "http")
def main(ctx):
# Only run for scikit-learn/scikit-learn. For debugging on a fork, you can
# comment out the following condition.
if env.get("CIRRUS_REPO_FULL_NAME") != "scikit-learn/scikit-learn":
return []
arm_wheel_yaml = "build_tools/cirrus/arm_wheel.yml"
arm_tests_yaml = "build_tools/cirrus/arm_tests.yml"
# Nightly jobs always run
if env.get("CIRRUS_CRON", "") == "nightly":
return fs.read(arm_wheel_yaml) + fs.read(arm_tests_yaml)
# Get commit message for event. We can not use `git` here because there is
# no command line access in starlark. Thus we need to query the GitHub API
# for the commit message. Note that `CIRRUS_CHANGE_MESSAGE` can not be used
# because it is set to the PR's title and not the latest commit message.
SHA = env.get("CIRRUS_CHANGE_IN_REPO")
REPO = env.get("CIRRUS_REPO_FULL_NAME")
url = "https://api.github.com/repos/" + REPO + "/git/commits/" + SHA
response = http.get(url).json()
commit_msg = response["message"]
jobs_to_run = ""
if "[cd build]" in commit_msg or "[cd build cirrus]" in commit_msg:
jobs_to_run += fs.read(arm_wheel_yaml)
if "[cirrus arm]" in commit_msg:
jobs_to_run += fs.read(arm_tests_yaml)
return jobs_to_run
Python
1
https://gitee.com/mirrors/scikit-learn.git
git@gitee.com:mirrors/scikit-learn.git
mirrors
scikit-learn
scikit-learn
main

搜索帮助