Skip to content

Commit f72db93

Browse files
authored
Add requirements for running unit tests (#3350)
* Add requirements for running unit tests * update
1 parent 7b596d0 commit f72db93

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/_unit_test_coverage.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ jobs:
205205
- name: Check Unit Test Success
206206
shell: bash
207207
run: |
208+
cd FastDeploy
208209
if [ "$TEST_EXIT_CODE" -eq 8 ]; then
209210
filename=$(basename "$unittest_failed_url")
210211
if [ -z "${unittest_failed_url}" ]; then
@@ -225,6 +226,7 @@ jobs:
225226
- name: Verify Code Coverage Threshold (80%)
226227
shell: bash
227228
run: |
229+
cd FastDeploy
228230
if [ "$COVERAGE_EXIT_CODE" -eq 9 ]; then
229231
echo "Coverage generation failed (exit code 9)"
230232
filename=$(basename "$diff_cov_result_json_url")

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)