Skip to content

Commit

Permalink
Upgrade shared workflow for coveralls changes (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
pronovic authored Mar 25, 2024
1 parent 34e06e7 commit 8080d1e
Show file tree
Hide file tree
Showing 5 changed files with 159 additions and 182 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,23 @@ concurrency:
jobs:
linux-build-and-test:
name: "Linux"
uses: pronovic/gha-shared-workflows/.github/workflows/poetry-build-and-test.yml@v5
uses: pronovic/gha-shared-workflows/.github/workflows/poetry-build-and-test.yml@v6
secrets: inherit
with:
matrix-os-version: "[ 'ubuntu-latest' ]"
matrix-python-version: "[ '3.9', '3.10', '3.11', '3.12' ]" # run Linux tests on all supported Python versions
enable-coveralls: true # only report to coveralls.io for tests that run on Linux
macos-build-and-test:
name: "MacOS"
uses: pronovic/gha-shared-workflows/.github/workflows/poetry-build-and-test.yml@v5
uses: pronovic/gha-shared-workflows/.github/workflows/poetry-build-and-test.yml@v6
secrets: inherit
with:
matrix-os-version: "[ 'macos-latest' ]"
matrix-python-version: "[ '3.12' ]" # only run MacOS tests on latest Python
enable-coveralls: false
windows-build-and-test:
name: "Windows"
uses: pronovic/gha-shared-workflows/.github/workflows/poetry-build-and-test.yml@v5
uses: pronovic/gha-shared-workflows/.github/workflows/poetry-build-and-test.yml@v6
secrets: inherit
with:
matrix-os-version: "[ 'windows-latest' ]"
Expand All @@ -41,7 +41,7 @@ jobs:
release:
name: "Release"
if: github.ref_type == 'tag'
uses: pronovic/gha-shared-workflows/.github/workflows/poetry-release.yml@v5
uses: pronovic/gha-shared-workflows/.github/workflows/poetry-release.yml@v6
needs: [ linux-build-and-test, macos-build-and-test, windows-build-and-test ]
secrets: inherit
with:
Expand Down
1 change: 1 addition & 0 deletions .run/commands/pytest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ command_pytest() {
if [ $coverage == "yes" ]; then
poetry_run coverage run -m pytest --testdox --force-testdox $color tests
poetry_run coverage report
poetry_run coverage lcov -o .coverage.lcov
if [ $html == "yes" ]; then
poetry_run coverage html -d .htmlcov
run_command openfile .htmlcov/index.html
Expand Down
4 changes: 4 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Version 0.1.50 unreleased

* Simplify GHA integration with coveralls.io.

Version 0.1.49 18 Mar 2024

* Updates to GHA workflows.
Expand Down
Loading

0 comments on commit 8080d1e

Please sign in to comment.