File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -131,12 +131,24 @@ jobs:
131131 coverage xml -o reports/coverage.xml -i
132132
133133 - name : Coverage comment
134+ id : coverage
134135 uses : MishaKav/pytest-coverage-comment@main
135136 with :
136137 pytest-xml-coverage-path : ./reports/coverage.xml
137138 default-branch : develop
138139 xml-skip-covered : true
139140 report-only-changed-files : true
140141
142+
143+ - name : Dynamic Badges
144+ uses :
schneegans/[email protected] 145+ with :
146+ auth : ${{ secrets.GIST_TOKEN }}
147+ gistID : 03e73a82ecc4709934540ce8201cc3b4
148+ filename : syncmaster_badge.json
149+ label : Coverage
150+ message : ${{ steps.coverage.outputs.coverage }}
151+ color : ${{ steps.coverage.outputs.color }}
152+
141153 - name : All done
142154 run : echo 1
Original file line number Diff line number Diff line change @@ -20,8 +20,9 @@ Data.SyncMaster
2020 :target: https://syncmaster.readthedocs.io
2121.. |Build Status | image :: https://github.com/MobileTeleSystems/syncmaster/workflows/Run%20All%20Tests/badge.svg
2222 :target: https://github.com/MobileTeleSystems/syncmaster/actions
23- .. |Coverage | image :: https://codecov.io/gh/MobileTeleSystems/syncmaster/graph/badge.svg?token=ky7UyUxolB
24- :target: https://codecov.io/gh/MobileTeleSystems/syncmaster
23+ .. |Coverage | image :: https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/
24+ MTSOnGithub/03e73a82ecc4709934540ce8201cc3b4/raw/syncmaster_badge.json
25+ :target: https://github.com/MobileTeleSystems/syncmaster/actions
2526.. |pre-commit.ci | image :: https://results.pre-commit.ci/badge/github/MobileTeleSystems/syncmaster/develop.svg
2627 :target: https://results.pre-commit.ci/latest/github/MobileTeleSystems/syncmaster/develop
2728
You can’t perform that action at this time.
0 commit comments