Skip to content

Commit

Permalink
Fix missing coverage upload (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
arneso-ssb authored Sep 10, 2024
1 parent 70e4bd3 commit c93d02e
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5.1.1
- uses: actions/setup-python@v5.2.0
with:
python-version: "3.12"
- run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
name: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5.1.1
- uses: actions/setup-python@v5.2.0
with:
python-version: "3.12"
- run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v4
with:
path: ssb-pypitemplate
- uses: actions/setup-python@v5.1.1
- uses: actions/setup-python@v5.2.0
with:
python-version: ${{ matrix.python-version }}
- name: Install tools using pip
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5.1.1
- uses: actions/setup-python@v5.2.0
with:
python-version: "3.12"
- run: |
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
exclude: "^{{cookiecutter\\.project_name}}/"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
furo==2024.8.6
myst-parser==4.0.0
sphinx==8.0.2
sphinx-autobuild==2024.4.16
sphinx-autobuild==2024.9.3
sphinx-copybutton==0.5.2
2 changes: 1 addition & 1 deletion {{cookiecutter.project_name}}/.github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
{% endraw %}

- name: Set up Python
uses: actions/setup-python@v5.1.1
uses: actions/setup-python@v5.2.0
with:
python-version: "3.12"
cache: "poetry"
Expand Down
6 changes: 3 additions & 3 deletions {{cookiecutter.project_name}}/.github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
fetch-depth: 2

- name: Set up Python
uses: actions/setup-python@v5.1.1
uses: actions/setup-python@v5.2.0
with:
python-version: "3.12"
{% raw %}
Expand Down Expand Up @@ -63,11 +63,11 @@ jobs:
- name: Publish package on PyPI
if: steps.check-version.outputs.tag
uses: pypa/gh-action-pypi-publish@v1.9.0
uses: pypa/gh-action-pypi-publish@v1.10.1

- name: Publish package on TestPyPI
if: (!steps.check-version.outputs.tag)
uses: pypa/gh-action-pypi-publish@v1.9.0
uses: pypa/gh-action-pypi-publish@v1.10.1
with:
repository-url: https://test.pypi.org/legacy/

Expand Down
7 changes: 4 additions & 3 deletions {{cookiecutter.project_name}}/.github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
uses: actions/checkout@v4

- name: Set up Python ${{"{{"}} matrix.python {{"}}"}}
uses: actions/setup-python@v5.1.0
uses: actions/setup-python@v5.2.0
with:
python-version: ${{"{{"}} matrix.python {{"}}"}}
{% raw %}
Expand Down Expand Up @@ -105,6 +105,7 @@ jobs:
with:
name: coverage-data-${{"{{"}} matrix.os {{"}}"}}-${{"{{"}} matrix.python {{"}}"}}
path: ".coverage.*"
include-hidden-files: true

- name: Upload documentation
if: matrix.session == 'docs-build'
Expand All @@ -123,7 +124,7 @@ jobs:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: Set up Python
uses: actions/setup-python@v5.1.1
uses: actions/setup-python@v5.2.0
with:
python-version: "3.12"
{% raw %}
Expand Down Expand Up @@ -173,4 +174,4 @@ jobs:
SONAR_TOKEN: {{ "${{ secrets.SONAR_TOKEN }}" }}
# No need to run SonarCloud analysis if dependabot update or token not defined
if: env.SONAR_TOKEN != '' && (github.actor != 'dependabot[bot]')
uses: SonarSource/sonarcloud-github-action@v2.3.0
uses: SonarSource/sonarcloud-github-action@v3.0.0
2 changes: 1 addition & 1 deletion {{cookiecutter.project_name}}/tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from {{cookiecutter.package_name}} import __main__


@pytest.fixture()
@pytest.fixture
def runner() -> CliRunner:
"""Fixture for invoking command-line interfaces."""
return CliRunner()
Expand Down

0 comments on commit c93d02e

Please sign in to comment.