File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 2727 run : uv run pytest tests/ -m "not hardware" --cov=kdbxtool --cov-report=xml --cov-report=html
2828
2929 - name : Generate coverage badge JSON
30- if : matrix.python-version == '3.12'
30+ if : matrix.python-version == '3.12' && github.event_name == 'push'
3131 run : |
3232 # Extract coverage percentage from HTML report
3333 COVERAGE=$(python -c "
6262 EOF
6363
6464 - name : Upload coverage artifact
65- if : matrix.python-version == '3.12'
65+ if : matrix.python-version == '3.12' && github.event_name == 'push'
6666 uses : actions/upload-artifact@v4
6767 with :
6868 name : coverage-report
8787 run : uv run mypy --strict --html-report mypy-report src/kdbxtool
8888
8989 - name : Generate mypy badge JSON
90+ if : github.event_name == 'push'
9091 run : |
9192 # Extract imprecise percentage from mypy index.html
9293 IMPRECISE=$(python -c "
@@ -122,6 +123,7 @@ jobs:
122123 EOF
123124
124125 - name : Upload mypy artifact
126+ if : github.event_name == 'push'
125127 uses : actions/upload-artifact@v4
126128 with :
127129 name : mypy-report
You can’t perform that action at this time.
0 commit comments