Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable unittest #917

Merged
merged 7 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 15 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,23 +84,25 @@ jobs:
./gradlew listProductsReleases # prepare list of IDEs for Plugin Verifier

# Run tests
#- name: Run Tests
# run: ./gradlew check
- name: Run Tests
run: ./gradlew check

# Collect Tests Result of failed tests
#- name: Collect Tests Result
# if: ${{ failure() }}
# uses: actions/upload-artifact@v4
# with:
# name: tests-result
# path: ${{ github.workspace }}/build/reports/tests
- name: Collect Tests Result
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: tests-result
path: ${{ github.workspace }}/build/reports/tests

# Upload Kover report to CodeCov
#- name: Upload Code Coverage Report
# uses: codecov/codecov-action@v3
# with:
# files: ${{ github.workspace }}/build/reports/kover/report.xml
# fail_ci_if_error: true
- name: Upload Code Coverage Report
uses: codecov/codecov-action@v4
with:
files: ${{ github.workspace }}/build/reports/kover/report.xml
fail_ci_if_error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

# Cache Plugin Verifier IDEs
- name: Setup Plugin Verifier IDEs Cache
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ platformVersion = 241-EAP-SNAPSHOT

# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
platformPlugins = python-ce
platformPlugins = python-ce, org.toml.lang

# Gradle Releases -> https://github.com/gradle/gradle/releases
gradleVersion = 8.6.0
Expand Down
2 changes: 1 addition & 1 deletion resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<depends>com.intellij.modules.lang</depends>
<depends>com.intellij.modules.python</depends>

<depends>org.toml.lang</depends>
<extensions defaultExtensionNs="com.intellij">
<localInspection language="Python" shortName="PydanticInspection" suppressId="Pydantic"
displayName="Pydantic definition and usages"
Expand Down
Loading