Skip to content

Commit

Permalink
Split Coveralls.IO publication to resolve throttling
Browse files Browse the repository at this point in the history
  • Loading branch information
wwkimball committed Feb 11, 2024
1 parent 188164d commit 9d9d73e
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 9 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
# This workflow will install dependencies, EYAML (from Ruby), and run all tests
# and linting tools with every supported version of Python.
# @see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: build

Expand Down Expand Up @@ -46,8 +47,3 @@ jobs:
- name: Unit Test with pytest
run: |
pytest --verbose --cov=yamlpath --cov-report=term-missing --cov-fail-under=100 --script-launch-mode=subprocess tests
- name: Publish coveralls Report
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
coveralls --service=github
34 changes: 34 additions & 0 deletions .github/workflows/python-publish-to-coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This workflow runs the full sweep of tests for the yamlpath package and publishes the coverage report to coveralls.io
name: build

on:
push:
branches: [ master, development ]
pull_request:
branches: [ master, development ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
- name: Set Environment Variables
run: |
echo "${HOME}/.local/share/gem/ruby/3.0.0/bin" >> $GITHUB_PATH
- name: Install dependencies
run: |
gem install --user-install hiera-eyaml
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
python -m pip install --upgrade pytest pytest-cov pytest-console-scripts coveralls
python -m pip install --editable .
- name: Unit Test with pytest
run: |
pytest --verbose --cov=yamlpath --cov-report=term-missing --cov-fail-under=100 --script-launch-mode=subprocess tests
- name: Publish coveralls Report
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
coveralls --service=github
3 changes: 2 additions & 1 deletion .github/workflows/python-publish-to-prod-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# SOURCE: https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
# Manually publish to production PyPI
# @ssee: https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
name: Upload PRODUCTION Python Package

on:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/python-publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# SOURCE: https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
# Test publishing to PyPI.
# @see: https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
name: Upload Python TEST Package

on:
Expand Down

0 comments on commit 9d9d73e

Please sign in to comment.