Skip to content

Commit

Permalink
CI: Attempt to repair holes in CodeCov reports.
Browse files Browse the repository at this point in the history
  • Loading branch information
petervdonovan committed Jan 17, 2022
1 parent c17701b commit b5b25ab
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 5 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/c-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,25 @@ jobs:
if: ${{ runner.os == 'Linux' }}
- name: Perform tests for C target
run: |
./gradlew test --tests org.lflang.tests.runtime.CTest.* --tests org.lflang.tests.lsp.LspTests.lspWithDependenciesTestC
./gradlew test --tests org.lflang.tests.runtime.CTest.*
if: ${{ !inputs.use-cpp }}
- name: Report to CodeCov
uses: codecov/codecov-action@v2.1.0
with:
file: org.lflang.tests/build/reports/xml/jacoco
fail_ci_if_error: false
verbose: true
- name: Run language server C tests
run: |
./gradlew test --tests org.lflang.tests.lsp.LspTests.lspWithDependenciesTestC
if: ${{ !inputs.use-cpp }}
- name: Report to CodeCov
uses: codecov/codecov-action@v2.1.0
with:
file: org.lflang.tests/build/reports/xml/jacoco
fail_ci_if_error: false
verbose: true
if: ${{ !inputs.compiler-ref }} # i.e., if this is part of the main repo's CI
- name: Perform tests for CCpp target
run: |
./gradlew test --tests org.lflang.tests.runtime.CCppTest.*
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/cpp-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,16 @@ jobs:
- uses: actions/checkout@v2
- name: Run C++ tests;
run: |
./gradlew test --tests org.lflang.tests.runtime.CppTest.* --tests org.lflang.tests.lsp.LspTests.lspWithDependenciesTestCpp
./gradlew test --tests org.lflang.tests.runtime.CppTest.*
- name: Report to CodeCov
uses: codecov/codecov-action@v2.1.0
with:
file: org.lflang.tests/build/reports/xml/jacoco
fail_ci_if_error: false
verbose: true
if: ${{ !inputs.compiler-ref }} # i.e., if this is part of the main repo's CI
- name: Run language server C++ tests
run: ./gradlew test --tests org.lflang.tests.lsp.LspTests.lspWithDependenciesTestCpp
- name: Report to CodeCov
uses: codecov/codecov-action@v2.1.0
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/lsp-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ jobs:
if: ${{ runner.os == 'Windows' }}
- name: Run language server Python tests without PyLint
run: ./gradlew test --tests org.lflang.tests.lsp.LspTests.pythonSyntaxOnlyValidationTest
- name: Report to CodeCov
uses: codecov/codecov-action@v2.1.0
with:
file: org.lflang.tests/build/reports/xml/jacoco
fail_ci_if_error: false
verbose: true
- name: Install pylint
run: python3 -m pip install pylint
- name: Run language server tests
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/py-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,17 @@ jobs:
if: ${{ runner.os == 'Linux' }}
- name: Run Python tests
run: |
./gradlew test --tests org.lflang.tests.runtime.PythonTest.* --tests org.lflang.tests.lsp.LspTests.lspWithDependenciesTestPython
./gradlew test --tests org.lflang.tests.runtime.PythonTest.*
- name: Report to CodeCov
uses: codecov/codecov-action@v2.1.0
with:
file: org.lflang.tests/build/reports/xml/jacoco
fail_ci_if_error: false
verbose: true
if: ${{ !inputs.compiler-ref }} # i.e., if this is part of the main repo's CI
- name: Run language server Python tests
run: |
./gradlew test --tests org.lflang.tests.lsp.LspTests.lspWithDependenciesTestPython
- name: Report to CodeCov
uses: codecov/codecov-action@v2.1.0
with:
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/rs-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,17 @@ jobs:
- uses: actions/checkout@v2
- name: Run Rust tests
run: |
./gradlew test --tests org.lflang.tests.runtime.RustTest.* --tests org.lflang.tests.lsp.LspTests.lspWithDependenciesTestRust
./gradlew test --tests org.lflang.tests.runtime.RustTest.*
- name: Report to CodeCov
uses: codecov/codecov-action@v2.1.0
with:
file: org.lflang.tests/build/reports/xml/jacoco
fail_ci_if_error: false
verbose: true
if: ${{ !inputs.compiler-ref }} # i.e., if this is part of the main repo's CI
- name: Run language server Rust tests
run: |
./gradlew test --tests org.lflang.tests.lsp.LspTests.lspWithDependenciesTestRust
- name: Report to CodeCov
uses: codecov/codecov-action@v2.1.0
with:
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/ts-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,17 @@ jobs:
if: ${{ inputs.runtime-ref }}
- name: Perform TypeScript tests
run: |
./gradlew test --tests org.lflang.tests.runtime.TypeScriptTest.* --tests org.lflang.tests.lsp.LspTests.lspWithDependenciesTestTypeScript
./gradlew test --tests org.lflang.tests.runtime.TypeScriptTest.*
- name: Report to CodeCov
uses: codecov/codecov-action@v2.1.0
with:
file: org.lflang.tests/build/reports/xml/jacoco
fail_ci_if_error: false
verbose: true
if: ${{ !inputs.compiler-ref }} # i.e., if this is part of the main repo's CI
- name: Perform language server TypeScript tests
run: |
./gradlew test --tests org.lflang.tests.lsp.LspTests.lspWithDependenciesTestTypeScript
- name: Report to CodeCov
uses: codecov/codecov-action@v2.1.0
with:
Expand Down

0 comments on commit b5b25ab

Please sign in to comment.