Skip to content

MinCost Flow: cost-scaling with partial-augment push-relabel variant #157

MinCost Flow: cost-scaling with partial-augment push-relabel variant

MinCost Flow: cost-scaling with partial-augment push-relabel variant #157

Workflow file for this run

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: .