Skip to content

Commit 37ee490

Browse files
committed
Add requirements for running unit tests
1 parent 2c0d853 commit 37ee490

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.github/workflows/_unit_test_coverage.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,8 @@ jobs:
120120
git config --global --add safe.directory /workspace/FastDeploy
121121
cd FastDeploy
122122
python -m pip install --pre paddlepaddle-gpu -i https://www.paddlepaddle.org.cn/packages/nightly/cu126/
123-
124-
pip config set global.extra-index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
125-
126-
python -m pip install coverage
127-
python -m pip install diff-cover
123+
pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
124+
python -m pip install -r scripts/unittest_requirement.txt
128125
python -m pip install ${fd_wheel_url}
129126
if [ -d "test/plugins" ]; then
130127
cd test/plugins

scripts/unittest_requirement.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
respx
2+
pytest
3+
pytest-asyncio
4+
pytest-tornasync
5+
pytest-trio
6+
pytest-twisted
7+
anyio
8+
coverage
9+
diff-cover

0 commit comments

Comments
 (0)