1 Star 1 Fork 1

幽鸟/scipy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.cirrus.star 1.86 KB
一键复制 编辑 原始数据 按行查看 历史
# The guide to programming cirrus-ci tasks using starlark is found at
# https://cirrus-ci.org/guide/programming-tasks/
#
# In this simple starlark script we simply check conditions for whether
# a CI run should go ahead. If the conditions are met, then we just
# return the yaml containing the tasks to be run.
load("cirrus", "env", "fs", "http")
def main(ctx):
######################################################################
# Should wheels be built?
# Only test on the scipy/scipy repository
# Test if the run was triggered by:
# - a cron job called "nightly". The cron job is not set in this file,
# but on the cirrus-ci repo page
# - commit message containing [wheel build]
######################################################################
if env.get("CIRRUS_REPO_FULL_NAME") != "scipy/scipy":
return []
if env.get("CIRRUS_CRON", "") == "nightly":
return fs.read("ci/cirrus_wheels.yml")
# Obtain commit message for the event. Unfortunately CIRRUS_CHANGE_MESSAGE
# only contains the actual commit message on a non-PR trigger event.
# For a PR event it contains the PR title and description.
SHA = env.get("CIRRUS_CHANGE_IN_REPO")
url = "https://api.github.com/repos/scipy/scipy/git/commits/" + SHA
dct = http.get(url).json()
if "[wheel build]" in dct["message"]:
return fs.read("ci/cirrus_wheels.yml")
# this configuration runs a single linux_aarch64 + macosx_arm64 run.
# there's no need to do this during a wheel run as they automatically build
# and test over a wider range of Pythons.
PR = int(env.get("CIRRUS_PR", -1))
if PR < 0:
return []
if "[skip cirrus]" in dct["message"] or "[skip ci]" in dct["message"] or "[lint only]" in dct["message"] or "[docs only]" in dct["message"]:
return []
return fs.read("ci/cirrus_general_ci.yml")
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/quietbirds/scipy.git
git@gitee.com:quietbirds/scipy.git
quietbirds
scipy
scipy
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385