Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
name: Lint Commit Messages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v5
- uses: wagoid/commitlint-github-action@v6

test:
strategy:
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
python-version: "pypy-3.10"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Set up Python
Expand All @@ -87,7 +87,7 @@ jobs:
- name: Test with Pytest
run: poetry run pytest --durations=20 --timeout=60 -v --cov=zeroconf --cov-branch --cov-report xml --cov-report html --cov-report term-missing tests
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}

Expand All @@ -96,10 +96,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Setup Python 3.12
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.12
- uses: snok/install-poetry@v1.3.4
- uses: snok/install-poetry@v1.4.1
- name: Install Dependencies
run: |
REQUIRE_CYTHON=1 poetry install --only=main,dev
Expand Down Expand Up @@ -134,14 +134,14 @@ jobs:

# Do a dry run of PSR
- name: Test release
uses: python-semantic-release/python-semantic-release@v9.12.0
uses: python-semantic-release/python-semantic-release@v9.16.1
if: github.ref_name != 'master'
with:
root_options: --noop

# On main branch: actual PSR + upload to PyPI & GitHub
- name: Release
uses: python-semantic-release/python-semantic-release@v9.12.0
uses: python-semantic-release/python-semantic-release@v9.16.1
id: release
if: github.ref_name == 'master'
with:
Expand Down Expand Up @@ -183,7 +183,7 @@ jobs:
musl: "musllinux"

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: "master"
Expand All @@ -203,7 +203,7 @@ jobs:
run: |
echo "::set-output name=newest_release_tag::$(semantic-release print-version --current)"

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: "${{ steps.release_tag.outputs.newest_release_tag }}"
fetch-depth: 0
Expand Down Expand Up @@ -237,7 +237,7 @@ jobs:
path: dist
merge-multiple: true

- uses: pypa/gh-action-pypi-publish@v1.5.0
- uses: pypa/gh-action-pypi-publish@v1.12.3
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
Expand Down
8 changes: 8 additions & 0 deletions commitlint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default {
extends: ["@commitlint/config-conventional"],
rules: {
"header-max-length": [0, "always", Infinity],
"body-max-line-length": [0, "always", Infinity],
"footer-max-line-length": [0, "always", Infinity],
},
};