Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit 53d0280

Browse files
authored
build: bump Kover to 0.5.0 (#419)
1 parent 565afe6 commit 53d0280

File tree

4 files changed

+18
-11
lines changed

4 files changed

+18
-11
lines changed

.github/workflows/main.yml

+1-8
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,4 @@ jobs:
9090

9191
# Requires installation of pytest and pytest-cov
9292
- name: Test with pytest
93-
run: poetry run pytest --doctest-modules --cov=package_parser --cov-report=html
94-
95-
- name: Upload test coverage
96-
if: ${{ github.actor != 'dependabot[bot]' }}
97-
uses: actions/upload-artifact@v2
98-
with:
99-
name: Test coverage
100-
path: package-parser/htmlcov
93+
run: poetry run pytest --doctest-modules

.github/workflows/pr.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
uses: gradle/wrapper-validation-action@v1
4444

4545
- name: Build with Gradle
46-
run: ./gradlew build
46+
run: ./gradlew check koverMergedHtmlReport
4747

4848
- name: Upload test report
4949
if: ${{ failure() }}
@@ -53,6 +53,13 @@ jobs:
5353
path: api-editor/server/build/reports
5454
if-no-files-found: ignore
5555

56+
- name: Upload test coverage
57+
if: ${{ github.actor != 'dependabot[bot]' }}
58+
uses: actions/upload-artifact@v2
59+
with:
60+
name: api-editor test coverage
61+
path: api-editor/build/reports/kover/html/
62+
5663
build-package-parser:
5764
runs-on: ubuntu-latest
5865
defaults:
@@ -101,5 +108,5 @@ jobs:
101108
if: ${{ github.actor != 'dependabot[bot]' }}
102109
uses: actions/upload-artifact@v2
103110
with:
104-
name: Test coverage
111+
name: package-parser test coverage
105112
path: package-parser/htmlcov

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
.settings/
33
.project
44

5+
# IntelliJ
6+
.idea/
7+
58
# Gradle
69
.gradle/
710

api-editor/build.gradle.kts

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Plugins -------------------------------------------------------------------------------------------------------------
22

33
plugins {
4-
id("org.jetbrains.kotlinx.kover") version "0.4.4"
4+
id("org.jetbrains.kotlinx.kover") version "0.5.0"
55
idea
66

77
// Pin versions for subprojects
@@ -22,6 +22,10 @@ idea {
2222
}
2323
}
2424

25+
kover {
26+
coverageEngine.set(kotlinx.kover.api.CoverageEngine.INTELLIJ)
27+
}
28+
2529
// Subprojects ---------------------------------------------------------------------------------------------------------
2630

2731
subprojects {

0 commit comments

Comments
 (0)