Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromerobert committed Nov 4, 2023
1 parent 060b1c4 commit d5bbca7
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ jobs:
run: python3 -m coverage run --data-file=.coverage.exporter -m unittest -v -f tests.test_exporter
- name: Core Tests and Coverage
run: python3 -m coverage run --data-file=.coverage.core -m unittest -v -f tests.test_core
- name: Convert to lcov
run: python3 -m coverage combine && python3 -m coverage lcov
- uses: actions/upload-artifact@v3
with:
name: ppp-coverage
path: .coverage.*
name: ppp-lcov
path: coverage.lcov
build-pikepdf-4:
runs-on: ubuntu-latest
# PikePDF 4.4.1
Expand All @@ -50,10 +52,12 @@ jobs:
run: python3 -m coverage run --data-file=.coverage.exporter.pp4 -m unittest -v -f tests.test_exporter
- name: Core Tests and Coverage
run: python3 -m coverage run --data-file=.coverage.core.pp4 -m unittest -v -f tests.test_core
- name: Convert to lcov
run: python3 -m coverage combine && python3 -m coverage lcov
- uses: actions/upload-artifact@v3
with:
name: pp4-coverage
path: .coverage.*
name: pp4-lcov
path: coverage.lcov
build-pikepdf-6:
runs-on: ubuntu-latest
# PikePDF 6.0.1
Expand All @@ -70,25 +74,24 @@ jobs:
run: python3 -m coverage run --data-file=.coverage.exporter.pp6 -m unittest -v -f tests.test_exporter
- name: Core Tests and Coverage
run: python3 -m coverage run --data-file=.coverage.core.pp6 -m unittest -v -f tests.test_core
- name: Convert to lcov
run: python3 -m coverage combine && python3 -m coverage lcov
- uses: actions/upload-artifact@v3
with:
name: pp6-coverage
path: .coverage.*
name: pp6-lcov
path: coverage.lcov
upload-to-codecov:
needs: [build, build-pikepdf-4, build-pikepdf-6]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install
run: pip3 install coverage
- name: Install lcov
run: sudo apt-get -y install lcov
- name: Download Artifacts
uses: actions/download-artifact@v3
- run: mv pp*-coverage/.coverage* . && rmdir pp*-coverage
- name: Combine Coverage
run: python3 -m coverage combine
- name: Convert to XML
run: python3 -m coverage xml -i && rm .coverage
run: lcov -a ppp-lcov/coverage.lcov -a pp6-lcov/coverage.lcov -a pp4-lcov/coverage.lcov -o lcov.info
- name: Upload to Codecov
uses: codecov/codecov-action@v3
build-pikepdf-1:
Expand Down

0 comments on commit d5bbca7

Please sign in to comment.