File tree Expand file tree Collapse file tree 4 files changed +27
-9
lines changed Expand file tree Collapse file tree 4 files changed +27
-9
lines changed Original file line number Diff line number Diff line change 66
66
-e repo_branch \
67
67
-e FLAGS_dynamic_static_unified_comm \
68
68
-e python_version \
69
+ -e HF_PROXY_PATH=$work_dir/../../../proxy_huggingface \
70
+ -e AISTUDIO_PROXY_PATH=$work_dir/../../../proxy_aistudio \
69
71
-w /workspace --runtime=nvidia --privileged $IMAGE_NAME
70
72
71
73
- name : Download Code
Original file line number Diff line number Diff line change @@ -131,12 +131,28 @@ jobs:
131
131
if : always()
132
132
runs-on : ubuntu-latest
133
133
steps :
134
- - name : Wget Cov-report
134
+ - name : Checkout Code
135
+ uses : actions/checkout@v4
136
+ with :
137
+ fetch-depth : 0
138
+
139
+ - name : Download coverage.xml
135
140
run : |
136
- wget -q --no-proxy https://paddle-github-action.bj.bcebos.com/PR/PaddleFormers/unittest-cpu/${PR_ID}/${COMMIT_ID}/logs/coverage.xml --no-check-certificate
141
+ wget -q --no-proxy \
142
+ https://paddle-github-action.bj.bcebos.com/PR/PaddleFormers/unittest-cpu/${PR_ID}/${COMMIT_ID}/logs/coverage.xml \
143
+ --no-check-certificate -O coverage.xml
137
144
138
- - name : Upload Cov-report
145
+ - name : Debug coverage paths
146
+ run : |
147
+ echo "=== coverage.xml (first 30 lines) ==="
148
+ head -n 30 coverage.xml
149
+ echo "=== Check if source files exist ==="
150
+ grep -o 'filename="[^"]*"' coverage.xml | head -n 10
151
+ find paddleformers -type f | head -n 10
152
+
153
+ - name : Upload coverage to Codecov
139
154
uses : codecov/codecov-action@v4
155
+ with :
156
+ files : coverage.xml
140
157
env :
141
- CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
142
- if-no-files-found : ignore
158
+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change @@ -39,8 +39,8 @@ unit-test:
39
39
PYTHONPATH=$(shell pwd) pytest -v \
40
40
--retries 1 --retry-delay 1 \
41
41
--durations 20 \
42
- --cov paddleformers \
43
- --cov-report xml:coverage.xml
42
+ --cov=./ paddleformers \
43
+ --cov-report= xml:coverage.xml
44
44
45
45
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
46
46
Original file line number Diff line number Diff line change @@ -65,12 +65,12 @@ paddleformers_build (){
65
65
python -c " import paddleformers; print('paddleformers commit:',paddleformers.version.commit)" >> ${log_path} /commit_info.txt
66
66
67
67
cp $formers_dir /dist/p**** .whl ${upload_path} /
68
- cp $formers_dir /dist/p**** .whl ${upload_path} /paddleformers-latest -py3-none-any.whl
68
+ cp $formers_dir /dist/p**** .whl ${upload_path} /paddleformers-0.0.0 -py3-none-any.whl
69
69
}
70
70
71
71
install_paddleformers (){
72
72
echo " install_formers_develop"
73
- python -m pip install --user https://paddleformers.bj.bcebos.com/wheels/paddleformers-latest -py3-none-any.whl --no-cache-dir
73
+ python -m pip install --user https://paddleformers.bj.bcebos.com/wheels/paddleformers-0.0.0 -py3-none-any.whl --no-cache-dir
74
74
python -c " import paddleformers; print('paddleformers commit:',paddleformers.version.commit)" >> ${log_path} /commit_info.txt
75
75
}
76
76
You can’t perform that action at this time.
0 commit comments