MinCost Flow: cost-scaling with partial-augment push-relabel variant #157
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: Coverage | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
coverage_report: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get repo | |
uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 11 | |
distribution: 'adopt' | |
- name: Build with Maven | |
run: mvn --batch-mode --update-snapshots package '-Dmaven.test.skip' | |
- name: Run JUnit Tests with Jacoco coverage | |
run: mvn --batch-mode -pl jgalgo-core clean jacoco:prepare-agent test jacoco:report | |
- name: Generate JaCoCo Badge | |
uses: cicirello/jacoco-badge-generator@v2 | |
with: | |
jacoco-csv-file: jgalgo-core/target/site/jacoco/jacoco.csv | |
generate-coverage-badge: true | |
badges-directory: jgalgo-core/target/site/jacoco/badges | |
- name: Zip coverage artifacts | |
run: | | |
tar -czf jgalgo-core/target/site/jacoco.tar.gz jgalgo-core/target/site/jacoco/ | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: jacoco-coverage-report | |
path: jgalgo-core/target/site/jacoco.tar.gz | |
- name: Publish Jacoco Coverage Report | |
uses: JamesIves/github-pages-deploy-action@v4.4.1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
branch: coverage | |
clean: true | |
folder: jgalgo-core/target/site/jacoco | |
target-folder: . |