File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [ master, main ]
6+ pull_request :
7+ branches : [ master, main ]
8+ workflow_dispatch :
9+
10+ concurrency :
11+ group : ${{ github.workflow }}-${{ github.ref }}
12+ cancel-in-progress : true
13+
14+ jobs :
15+ build :
16+ runs-on : ubuntu-latest
17+ timeout-minutes : 15
18+
19+ steps :
20+ - uses : actions/checkout@v4
21+
22+ - name : Install Qt and coverage tools
23+ run : |
24+ sudo apt-get update
25+ sudo apt-get install -y qt5-qmake qtbase5-dev qtchooser lcov
26+
27+ - name : Build with coverage
28+ run : |
29+ qmake "QMAKE_CXXFLAGS += -fprofile-arcs -ftest-coverage" "QMAKE_LFLAGS += -fprofile-arcs -ftest-coverage" 2>/dev/null || qmake
30+ make -j$(nproc)
31+
32+ - name : Run tests
33+ run : make check || ctest || true
34+
35+ - name : Coverage report
36+ if : always()
37+ run : |
38+ lcov --capture --directory . --output-file coverage.info --ignore-errors source 2>/dev/null || true
39+ lcov --remove coverage.info '/usr/*' '*/moc_*' '*/ui_*' --output-file coverage.info 2>/dev/null || true
40+ if [ -f coverage.info ] && [ -s coverage.info ]; then
41+ echo "## Test Coverage Report" >> $GITHUB_STEP_SUMMARY
42+ echo '```' >> $GITHUB_STEP_SUMMARY
43+ lcov --summary coverage.info 2>&1 | grep -E "lines|functions" >> $GITHUB_STEP_SUMMARY
44+ echo '```' >> $GITHUB_STEP_SUMMARY
45+ echo "" >> $GITHUB_STEP_SUMMARY
46+ echo "### Per-file" >> $GITHUB_STEP_SUMMARY
47+ echo '```' >> $GITHUB_STEP_SUMMARY
48+ lcov --list coverage.info 2>&1 | head -30 >> $GITHUB_STEP_SUMMARY
49+ echo '```' >> $GITHUB_STEP_SUMMARY
50+ fi
Original file line number Diff line number Diff line change 1+ # C++ objects and libs
2+
3+ * .slo
4+ * .lo
5+ * .o
6+ * .a
7+ * .la
8+ * .lai
9+ * .so
10+ * .dll
11+ * .dylib
12+
13+ # Qt-es
14+
15+ /.qmake.cache
16+ /.qmake.stash
17+ * .pro.user
18+ * .pro.user. *
19+ * .qbs.user
20+ * .qbs.user. *
21+ * .moc
22+ moc_ * .cpp
23+ qrc_ * .cpp
24+ ui_ * .h
25+ Makefile *
26+ * build- *
27+
28+ # QtCreator
29+
30+ * .autosave
31+
32+ # QtCtreator Qml
33+ * .qmlproject.user
34+ * .qmlproject.user. *
35+ .idea
Original file line number Diff line number Diff line change 1+ # Qt_SQLBrowser — Работа с Базой Данных из Qt
2+
3+ ## About
4+
5+ Qt desktop application demonstrating widgets, signals/slots, and cross-platform GUI development.
6+
7+ ## Prerequisites
8+
9+ - See project documentation
10+
11+ ## Build & Run
12+
13+ ``` bash
14+ # See project files for build instructions
15+ ```
16+
17+ ## Development Guidelines
18+
19+ ### Code Style
20+ - Follow standard unknown conventions
21+ - Keep code clean and well-organized
22+ - Use meaningful variable and method names
23+
24+ ### Git Workflow
25+ - Write clear, descriptive commit messages
26+ - One logical change per commit
27+ - Test before committing
28+
29+ ### Testing
30+ - Write tests for new functionality
31+ - Run the full test suite before pushing
32+ - Keep tests focused and independent
Original file line number Diff line number Diff line change 1+ # Qt_SQLBrowser
2+ Работа с Базой Данных из Qt
You can’t perform that action at this time.
0 commit comments