Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
6c2a89e5
提交
6c2a89e5
authored
12月 16, 2022
作者:
Ricardo Vieira
提交者:
Ricardo Vieira
12月 16, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add CI job for benchmarking
Co-authored-by:
Brandon T. Willard
<
brandonwillard@users.noreply.github.com
>
上级
0a242f29
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
54 行增加
和
1 行删除
+54
-1
test.yml
.github/workflows/test.yml
+54
-1
没有找到文件。
.github/workflows/test.yml
浏览文件 @
6c2a89e5
...
@@ -4,7 +4,6 @@ on:
...
@@ -4,7 +4,6 @@ on:
push
:
push
:
branches
:
branches
:
-
main
-
main
-
checks
pull_request
:
pull_request
:
branches
:
branches
:
-
main
-
main
...
@@ -148,6 +147,60 @@ jobs:
...
@@ -148,6 +147,60 @@ jobs:
name
:
coverage
name
:
coverage
path
:
coverage/coverage-${{ steps.matrix-id.outputs.id }}.xml
path
:
coverage/coverage-${{ steps.matrix-id.outputs.id }}.xml
benchmarks
:
name
:
"
Benchmarks"
needs
:
-
changes
-
style
runs-on
:
ubuntu-latest
if
:
${{ needs.changes.outputs.changes == 'true' && needs.style.result == 'success' }}
strategy
:
fail-fast
:
true
steps
:
-
uses
:
actions/checkout@v3
with
:
fetch-depth
:
0
-
name
:
Set up Python 3.9
uses
:
conda-incubator/setup-miniconda@v2
with
:
mamba-version
:
"
*"
channels
:
conda-forge,defaults
channel-priority
:
true
python-version
:
3.9
auto-update-conda
:
true
-
name
:
Install dependencies
shell
:
bash -l {0}
run
:
|
mamba install --yes -q -c conda-forge "python~=${PYTHON_VERSION}=*_cpython" mkl numpy scipy pip mkl-service cython pytest "numba>=0.55" numba-scipy jax jaxlib pytest-benchmark
pip install -e ./
mamba list && pip freeze
python -c 'import pytensor; print(pytensor.config.__str__(print_doc=False))'
python -c 'import pytensor; assert(pytensor.config.blas__ldflags != "")'
env
:
PYTHON_VERSION
:
3.9
-
name
:
Download previous benchmark data
uses
:
actions/cache@v1
with
:
path
:
./cache
key
:
${{ runner.os }}-benchmark
-
name
:
Run benchmarks
shell
:
bash -l {0}
run
:
|
export PYTENSOR_FLAGS=mode=FAST_COMPILE,warn__ignore_bug_before=all,on_opt_error=raise,on_shape_error=raise,gcc__cxxflags=-pipe
python -m pytest --runslow --benchmark-only --benchmark-json output.json
-
name
:
Store benchmark result
uses
:
benchmark-action/github-action-benchmark@v1
with
:
name
:
Python Benchmark with pytest-benchmark
tool
:
'
pytest'
output-file-path
:
output.json
external-data-json-path
:
./cache/benchmark-data.json
alert-threshold
:
'
200%'
github-token
:
${{ secrets.GITHUB_TOKEN }}
comment-on-alert
:
${{ github.event_name == 'push' }}
fail-on-alert
:
true
auto-push
:
false
all-checks
:
all-checks
:
if
:
${{ always() }}
if
:
${{ always() }}
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论