Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
e6554291
提交
e6554291
authored
11月 01, 2024
作者:
Luciano Paz
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add workflow job on mac to check blas
上级
b4e95319
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
32 行增加
和
8 行删除
+32
-8
test.yml
.github/workflows/test.yml
+32
-8
没有找到文件。
.github/workflows/test.yml
浏览文件 @
e6554291
...
@@ -61,16 +61,17 @@ jobs:
...
@@ -61,16 +61,17 @@ jobs:
python-version
:
${{ matrix.python-version }}
python-version
:
${{ matrix.python-version }}
-
uses
:
pre-commit/action@v3.0.1
-
uses
:
pre-commit/action@v3.0.1
test
_ubuntu
:
test
:
name
:
"
T
est
py${{
matrix.python-version
}}
:
fast-compile
${{
matrix.fast-compile
}}
:
float32
${{
matrix.float32
}}
:
${{
matrix.part
}}"
name
:
"
${{
matrix.os
}}
t
est
py${{
matrix.python-version
}}
:
fast-compile
${{
matrix.fast-compile
}}
:
float32
${{
matrix.float32
}}
:
${{
matrix.part
}}"
needs
:
needs
:
-
changes
-
changes
-
style
-
style
runs-on
:
ubuntu-latest
runs-on
:
${{ matrix.os }}
if
:
${{ needs.changes.outputs.changes == 'true' && needs.style.result == 'success' }}
if
:
${{ needs.changes.outputs.changes == 'true' && needs.style.result == 'success' }}
strategy
:
strategy
:
fail-fast
:
false
fail-fast
:
false
matrix
:
matrix
:
os
:
[
"
ubuntu-latest"
]
python-version
:
[
"
3.10"
,
"
3.12"
]
python-version
:
[
"
3.10"
,
"
3.12"
]
fast-compile
:
[
0
,
1
]
fast-compile
:
[
0
,
1
]
float32
:
[
0
,
1
]
float32
:
[
0
,
1
]
...
@@ -103,30 +104,44 @@ jobs:
...
@@ -103,30 +104,44 @@ jobs:
fast-compile
:
1
fast-compile
:
1
include
:
include
:
-
install-numba
:
1
-
install-numba
:
1
os
:
"
ubuntu-latest"
python-version
:
"
3.10"
python-version
:
"
3.10"
fast-compile
:
0
fast-compile
:
0
float32
:
0
float32
:
0
part
:
"
tests/link/numba"
part
:
"
tests/link/numba"
-
install-numba
:
1
-
install-numba
:
1
os
:
"
ubuntu-latest"
python-version
:
"
3.12"
python-version
:
"
3.12"
fast-compile
:
0
fast-compile
:
0
float32
:
0
float32
:
0
part
:
"
tests/link/numba"
part
:
"
tests/link/numba"
-
install-jax
:
1
-
install-jax
:
1
os
:
"
ubuntu-latest"
python-version
:
"
3.10"
python-version
:
"
3.10"
fast-compile
:
0
fast-compile
:
0
float32
:
0
float32
:
0
part
:
"
tests/link/jax"
part
:
"
tests/link/jax"
-
install-jax
:
1
-
install-jax
:
1
os
:
"
ubuntu-latest"
python-version
:
"
3.12"
python-version
:
"
3.12"
fast-compile
:
0
fast-compile
:
0
float32
:
0
float32
:
0
part
:
"
tests/link/jax"
part
:
"
tests/link/jax"
-
install-torch
:
1
-
install-torch
:
1
os
:
"
ubuntu-latest"
python-version
:
"
3.10"
python-version
:
"
3.10"
fast-compile
:
0
fast-compile
:
0
float32
:
0
float32
:
0
part
:
"
tests/link/pytorch"
part
:
"
tests/link/pytorch"
-
os
:
macos-latest
python-version
:
"
3.12"
fast-compile
:
0
float32
:
0
install-numba
:
0
install-jax
:
0
install-torch
:
0
part
:
"
tests/tensor/test_blas.py
tests/tensor/test_elemwise.py
tests/tensor/test_math_scipy.py"
steps
:
steps
:
-
uses
:
actions/checkout@v4
-
uses
:
actions/checkout@v4
with
:
with
:
...
@@ -146,7 +161,7 @@ jobs:
...
@@ -146,7 +161,7 @@ jobs:
MATRIX_CONTEXT
:
${{ toJson(matrix) }}
MATRIX_CONTEXT
:
${{ toJson(matrix) }}
run
:
|
run
:
|
echo $MATRIX_CONTEXT
echo $MATRIX_CONTEXT
export MATRIX_ID=`echo $MATRIX_CONTEXT |
md5
sum | cut -c 1-32`
export MATRIX_ID=`echo $MATRIX_CONTEXT |
sha256
sum | cut -c 1-32`
echo $MATRIX_ID
echo $MATRIX_ID
echo "id=$MATRIX_ID" >> $GITHUB_OUTPUT
echo "id=$MATRIX_ID" >> $GITHUB_OUTPUT
...
@@ -154,7 +169,11 @@ jobs:
...
@@ -154,7 +169,11 @@ jobs:
shell
:
micromamba-shell {0}
shell
:
micromamba-shell {0}
run
:
|
run
:
|
micromamba install --yes -q "python~=${PYTHON_VERSION}=*_cpython" mkl numpy scipy pip mkl-service graphviz cython pytest coverage pytest-cov pytest-benchmark pytest-mock
if [[ $OS == "macos-latest" ]]; then
micromamba install --yes -q "python~=${PYTHON_VERSION}=*_cpython" numpy scipy pip graphviz cython pytest coverage pytest-cov pytest-benchmark pytest-mock libblas=*=*accelerate;
else
micromamba install --yes -q "python~=${PYTHON_VERSION}=*_cpython" mkl numpy scipy pip mkl-service graphviz cython pytest coverage pytest-cov pytest-benchmark pytest-mock;
fi
if [[ $INSTALL_NUMBA == "1" ]]; then micromamba install --yes -q -c conda-forge "python~=${PYTHON_VERSION}=*_cpython" "numba>=0.57"; fi
if [[ $INSTALL_NUMBA == "1" ]]; then micromamba install --yes -q -c conda-forge "python~=${PYTHON_VERSION}=*_cpython" "numba>=0.57"; fi
if [[ $INSTALL_JAX == "1" ]]; then micromamba install --yes -q -c conda-forge "python~=${PYTHON_VERSION}=*_cpython" jax jaxlib numpyro && pip install tensorflow-probability; fi
if [[ $INSTALL_JAX == "1" ]]; then micromamba install --yes -q -c conda-forge "python~=${PYTHON_VERSION}=*_cpython" jax jaxlib numpyro && pip install tensorflow-probability; fi
if [[ $INSTALL_TORCH == "1" ]]; then micromamba install --yes -q -c conda-forge "python~=${PYTHON_VERSION}=*_cpython" pytorch pytorch-cuda=12.1 "mkl<=2024.0" -c pytorch -c nvidia; fi
if [[ $INSTALL_TORCH == "1" ]]; then micromamba install --yes -q -c conda-forge "python~=${PYTHON_VERSION}=*_cpython" pytorch pytorch-cuda=12.1 "mkl<=2024.0" -c pytorch -c nvidia; fi
...
@@ -163,12 +182,17 @@ jobs:
...
@@ -163,12 +182,17 @@ jobs:
pip install -e ./
pip install -e ./
micromamba list && pip freeze
micromamba list && pip freeze
python -c 'import pytensor; print(pytensor.config.__str__(print_doc=False))'
python -c 'import pytensor; print(pytensor.config.__str__(print_doc=False))'
python -c 'import pytensor; assert pytensor.config.blas__ldflags != "", "Blas flags are empty"'
if [[ $OS == "macos-latest" ]]; then
python -c 'import pytensor; assert pytensor.config.blas__ldflags.startswith("-framework Accelerate"), "Blas flags are not set to MacOS Accelerate"';
else
python -c 'import pytensor; assert pytensor.config.blas__ldflags != "", "Blas flags are empty"';
fi
env
:
env
:
PYTHON_VERSION
:
${{ matrix.python-version }}
PYTHON_VERSION
:
${{ matrix.python-version }}
INSTALL_NUMBA
:
${{ matrix.install-numba }}
INSTALL_NUMBA
:
${{ matrix.install-numba }}
INSTALL_JAX
:
${{ matrix.install-jax }}
INSTALL_JAX
:
${{ matrix.install-jax }}
INSTALL_TORCH
:
${{ matrix.install-torch}}
INSTALL_TORCH
:
${{ matrix.install-torch}}
OS
:
${{ matrix.os}}
-
name
:
Run tests
-
name
:
Run tests
shell
:
micromamba-shell {0}
shell
:
micromamba-shell {0}
...
@@ -249,10 +273,10 @@ jobs:
...
@@ -249,10 +273,10 @@ jobs:
if
:
${{ always() }}
if
:
${{ always() }}
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
name
:
"
All
tests"
name
:
"
All
tests"
needs
:
[
changes
,
style
,
test
_ubuntu
]
needs
:
[
changes
,
style
,
test
]
steps
:
steps
:
-
name
:
Check build matrix status
-
name
:
Check build matrix status
if
:
${{ needs.changes.outputs.changes == 'true' && (needs.style.result != 'success' || needs.test
_ubuntu
.result != 'success') }}
if
:
${{ needs.changes.outputs.changes == 'true' && (needs.style.result != 'success' || needs.test.result != 'success') }}
run
:
exit 1
run
:
exit 1
upload-coverage
:
upload-coverage
:
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论