Skip to content

Commit e1d1f5c

Browse files
chore(deps-ci): bump the github-actions group with 8 updates (#152)
* chore(deps-ci): bump the github-actions group with 8 updates Bumps the github-actions group with 8 updates: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `3` | `4` | | [actions/setup-python](https://github.com/actions/setup-python) | `3` | `5` | | [pre-commit/action](https://github.com/pre-commit/action) | `3.0.0` | `3.0.1` | | [wagoid/commitlint-github-action](https://github.com/wagoid/commitlint-github-action) | `5` | `6` | | [codecov/codecov-action](https://github.com/codecov/codecov-action) | `3` | `5` | | [relekang/python-semantic-release](https://github.com/relekang/python-semantic-release) | `7.34.6` | `9.21.0` | | [browniebroke/hacktoberfest-labeler-action](https://github.com/browniebroke/hacktoberfest-labeler-action) | `2.2.0` | `2.3.0` | | [tiangolo/issue-manager](https://github.com/tiangolo/issue-manager) | `0.4.0` | `0.5.1` | Updates `actions/checkout` from 3 to 4 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v3...v4) Updates `actions/setup-python` from 3 to 5 - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](actions/setup-python@v3...v5) Updates `pre-commit/action` from 3.0.0 to 3.0.1 - [Release notes](https://github.com/pre-commit/action/releases) - [Commits](pre-commit/action@v3.0.0...v3.0.1) Updates `wagoid/commitlint-github-action` from 5 to 6 - [Changelog](https://github.com/wagoid/commitlint-github-action/blob/master/CHANGELOG.md) - [Commits](wagoid/commitlint-github-action@v5...v6) Updates `codecov/codecov-action` from 3 to 5 - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](codecov/codecov-action@v3...v5) Updates `relekang/python-semantic-release` from 7.34.6 to 9.21.0 - [Release notes](https://github.com/relekang/python-semantic-release/releases) - [Changelog](https://github.com/python-semantic-release/python-semantic-release/blob/master/CHANGELOG.rst) - [Commits](python-semantic-release/python-semantic-release@v7.34.6...v9.21.0) Updates `browniebroke/hacktoberfest-labeler-action` from 2.2.0 to 2.3.0 - [Release notes](https://github.com/browniebroke/hacktoberfest-labeler-action/releases) - [Changelog](https://github.com/browniebroke/hacktoberfest-labeler-action/blob/main/CHANGELOG.md) - [Commits](browniebroke/hacktoberfest-labeler-action@v2.2.0...v2.3.0) Updates `tiangolo/issue-manager` from 0.4.0 to 0.5.1 - [Release notes](https://github.com/tiangolo/issue-manager/releases) - [Commits](tiangolo/issue-manager@0.4.0...0.5.1) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: pre-commit/action dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: wagoid/commitlint-github-action dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: codecov/codecov-action dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: relekang/python-semantic-release dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: browniebroke/hacktoberfest-labeler-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: tiangolo/issue-manager dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions ... Signed-off-by: dependabot[bot] <[email protected]> * chore: update commitlint config * chore: update pyproject for new psr * chore: migrate workflow to upload python package --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: J. Nick Koston <[email protected]>
1 parent 7d91379 commit e1d1f5c

File tree

5 files changed

+30
-17
lines changed

5 files changed

+30
-17
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ jobs:
1414
lint:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v3
18-
- uses: actions/setup-python@v3
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-python@v5
1919
with:
2020
python-version: "3.10"
21-
- uses: pre-commit/[email protected].0
21+
- uses: pre-commit/[email protected].1
2222

2323
# Make sure commit messages follow the conventional commits convention:
2424
# https://www.conventionalcommits.org
2525
commitlint:
2626
name: Lint Commit Messages
2727
runs-on: ubuntu-latest
2828
steps:
29-
- uses: actions/checkout@v3
29+
- uses: actions/checkout@v4
3030
with:
3131
fetch-depth: 0
32-
- uses: wagoid/commitlint-github-action@v5
32+
- uses: wagoid/commitlint-github-action@v6
3333

3434
test:
3535
strategy:
@@ -44,18 +44,20 @@ jobs:
4444
- ubuntu-latest
4545
runs-on: ${{ matrix.os }}
4646
steps:
47-
- uses: actions/checkout@v3
47+
- uses: actions/checkout@v4
4848
- name: Set up Python
49-
uses: actions/setup-python@v3
49+
uses: actions/setup-python@v5
5050
with:
5151
python-version: ${{ matrix.python-version }}
5252
- uses: snok/install-poetry@v1
5353
- name: Install Dependencies
54+
shell: bash
5455
run: poetry install
5556
- name: Test with Pytest
57+
shell: bash
5658
run: poetry run pytest --cov-report=xml
5759
- name: Upload coverage to Codecov
58-
uses: codecov/codecov-action@v3
60+
uses: codecov/codecov-action@v5
5961
with:
6062
token: ${{ secrets.CODECOV_TOKEN }}
6163

@@ -67,9 +69,12 @@ jobs:
6769
- test
6870
- lint
6971
- commitlint
72+
permissions:
73+
id-token: write
74+
contents: write
7075

7176
steps:
72-
- uses: actions/checkout@v3
77+
- uses: actions/checkout@v4
7378
with:
7479
fetch-depth: 0
7580

@@ -78,9 +83,17 @@ jobs:
7883
# - Update version in code
7984
# - Create git tag
8085
# - Create GitHub release
81-
# - Publish to PyPI
8286
- name: Python Semantic Release
83-
uses: relekang/[email protected]
87+
id: release
88+
uses: python-semantic-release/[email protected]
8489
with:
8590
github_token: ${{ secrets.GITHUB_TOKEN }}
86-
pypi_token: ${{ secrets.PYPI_TOKEN }}
91+
- name: Upload package to PyPI
92+
uses: pypa/gh-action-pypi-publish@release/v1
93+
if: steps.release.outputs.released == 'true'
94+
- name: Upload Github Release Assets
95+
uses: python-semantic-release/[email protected]
96+
if: steps.release.outputs.released == 'true'
97+
with:
98+
github_token: ${{ secrets.GITHUB_TOKEN }}
99+
tag: ${{ steps.release.outputs.tag }}

.github/workflows/hacktoberfest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: browniebroke/hacktoberfest-labeler-action@v2.2.0
15+
- uses: browniebroke/hacktoberfest-labeler-action@v2.3.0
1616
with:
1717
github_token: ${{ secrets.GH_PAT }}

.github/workflows/issue-manager.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
issue-manager:
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: tiangolo/issue-manager@0.4.0
21+
- uses: tiangolo/issue-manager@0.5.1
2222
with:
2323
token: ${{ secrets.GITHUB_TOKEN }}
2424
config: >
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = {
1+
export default {
22
extends: ["@commitlint/config-conventional"],
33
rules: {
44
"header-max-length": [0, "always", Infinity],

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ pyupgrade = "^3.15.0"
5858

5959
[tool.semantic_release]
6060
branch = "main"
61-
version_toml = "pyproject.toml:tool.poetry.version"
62-
version_variable = "src/xiaomi_ble/__init__.py:__version__"
61+
version_toml = ["pyproject.toml:tool.poetry.version"]
62+
version_variables = ["src/xiaomi_ble/__init__.py:__version__"]
6363
build_command = "pip install poetry && poetry build"
6464

6565
[tool.pytest.ini_options]

0 commit comments

Comments
 (0)