test: 自动上传覆盖率

This commit is contained in:
RockChinQ 2023-12-28 16:14:54 +08:00
parent 41cbe91870
commit b31c34905a

View File

@ -70,4 +70,11 @@ jobs:
- name: Run test
run: |
cd qcg-tester
python main.py
python main.py
- name: Upload coverage reports to Codecov
run: |
cd qcg-tester/resource/QChatGPT
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -t ${{ secrets.CODECOV_TOKEN }}