Added tests for the new plotting methods #101
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Measure java coverage | |
on: | |
pull_request: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3 | |
- name: Run Coverage | |
working-directory: ./javaNeuralNetwork | |
run: | | |
chmod +x ./gradlew | |
./gradlew build | |
- name: Add coverage to PR | |
id: jacoco | |
uses: madrapps/[email protected] | |
with: | |
paths: | | |
${{ github.workspace }}/**/build/reports/jacoco/prodNormalDebugCoverage/prodNormalDebugCoverage.xml, | |
${{ github.workspace }}/**/build/reports/jacoco/**/debugCoverage.xml | |
token: ${{ secrets.GITHUB_TOKEN }} | |
min-coverage-overall: 50 | |
min-coverage-changed-files: 80 | |
- name: Upload coverage reports to Codecov 1 | |
working-directory: ./javaNeuralNetwork/build/reports/jacoco/test | |
run: | | |
bash <(curl https://codecov.io/bash) -f jacocoTestReport.xml | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
- name: Upload coverage reports to Codecov 2 | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
slug: mghosh00/NeuralNetwork | |
files: javaNeuralNetwork/build/reports/jacoco/test/jacocoTestReport.xml |