Skip to content

Commit 41c5473

Browse files
Update all tools, packages and actions
1 parent b074de4 commit 41c5473

8 files changed

Lines changed: 59 additions & 50 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
name: Upload Python Package
77

8-
on:
8+
on: # yamllint disable-line rule:truthy
99
push:
1010
branches:
1111
- main
@@ -18,12 +18,12 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@v6
2222
with:
2323
# all history is needed to crawl it properly
2424
fetch-depth: 0
2525
- name: Set up Python
26-
uses: actions/setup-python@v5
26+
uses: actions/setup-python@v6
2727
with:
2828
python-version: '3.11'
2929
- name: Install build dependencies
@@ -46,14 +46,14 @@ jobs:
4646
rm dist/*.orig
4747
# sdist call create non conform twine files *.orig, remove them
4848
- name: Publish package
49-
uses: pypa/gh-action-pypi-publish@release/v1.5
49+
uses: pypa/gh-action-pypi-publish@release/v1.13
5050
with:
5151
password: ${{ secrets.PYPI_API_TOKEN }}
5252
skip_existing: true
5353
verbose: true
5454
print_hash: true
5555
- name: 'Create changelog based release'
56-
uses: brainelectronics/changelog-based-release@v1
56+
uses: brainelectronics/changelog-based-release@v1.1.0
5757
with:
5858
# note you'll typically need to create a personal access token
5959
# with permissions to create releases in the other repo

.github/workflows/test-release.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
name: Upload Python Package to test.pypi.org
77

8-
on: [pull_request]
8+
on: [pull_request] # yamllint disable-line rule:truthy
99

1010
permissions:
1111
contents: write
@@ -15,12 +15,12 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@v6
1919
with:
2020
# all history is needed to crawl it properly
2121
fetch-depth: 0
2222
- name: Set up Python
23-
uses: actions/setup-python@v5
23+
uses: actions/setup-python@v6
2424
with:
2525
python-version: '3.11'
2626
- name: Install build dependencies
@@ -47,7 +47,7 @@ jobs:
4747
rm dist/*.orig
4848
twine check dist/*.tar.gz
4949
- name: Archive build package artifact
50-
uses: actions/upload-artifact@v3
50+
uses: actions/upload-artifact@v7
5151
with:
5252
# https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
5353
# ${{ github.repository }} and ${{ github.ref_name }} can't be used
@@ -56,15 +56,15 @@ jobs:
5656
path: dist/*.tar.gz
5757
retention-days: 14
5858
- name: Publish package
59-
uses: pypa/gh-action-pypi-publish@release/v1.5
59+
uses: pypa/gh-action-pypi-publish@release/v1.13
6060
with:
6161
repository_url: https://test.pypi.org/legacy/
6262
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
6363
skip_existing: true
6464
verbose: true
6565
print_hash: true
6666
- name: 'Create changelog based prerelease'
67-
uses: brainelectronics/changelog-based-release@v1
67+
uses: brainelectronics/changelog-based-release@v1.1.0
6868
with:
6969
# note you'll typically need to create a personal access token
7070
# with permissions to create releases in the other repo

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
name: Test Python package
99

10-
on:
10+
on: # yamllint disable-line rule:truthy
1111
push:
1212
# branches: [ $default-branch ]
1313
branches-ignore:
@@ -26,12 +26,12 @@ jobs:
2626
runs-on: ubuntu-latest
2727
steps:
2828
- name: Checkout
29-
uses: actions/checkout@v4
29+
uses: actions/checkout@v6
3030
with:
3131
# all history is needed to crawl it properly
3232
fetch-depth: 0
3333
- name: Set up Python
34-
uses: actions/setup-python@v5
34+
uses: actions/setup-python@v6
3535
with:
3636
python-version: '3.11'
3737
- name: Install test dependencies

.github/workflows/unittest.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
name: Unittest Python Package
77

8-
on: [push, pull_request]
8+
on: [push, pull_request] # yamllint disable-line rule:truthy
99

1010
permissions:
1111
contents: read
@@ -14,8 +14,8 @@ jobs:
1414
test-and-coverage:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v4
18-
- uses: actions/setup-python@v5
17+
- uses: actions/checkout@v6
18+
- uses: actions/setup-python@v6
1919
with:
2020
python-version: '3.11'
2121
- name: Execute tests
@@ -27,7 +27,7 @@ jobs:
2727
run: |
2828
coverage xml
2929
- name: Upload coverage to Codecov
30-
uses: codecov/codecov-action@v3
30+
uses: codecov/codecov-action@v6
3131
with:
3232
token: ${{ secrets.CODECOV_TOKEN }}
3333
files: ./reports/coverage/coverage.xml

.pre-commit-config.yaml

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,44 @@
44
# pip3 install pre-commit
55
# pre-commit install
66
#
7-
default_stages:
8-
- commit
9-
- push
10-
- manual
7+
# Run the hooks on all files with
8+
# 'pre-commit run --all'
9+
#
1110

1211
repos:
13-
- repo: https://github.com/pre-commit/pre-commit-hooks
14-
rev: v2.3.0
15-
hooks:
16-
- id: check-yaml
17-
- id: trailing-whitespace
18-
args: [--markdown-linebreak-ext=md]
1912
- repo: https://github.com/PyCQA/flake8
20-
rev: 5.0.4
13+
rev: 7.3.0
2114
hooks:
2215
- id: flake8
23-
- repo: https://github.com/brainelectronics/micropython-package-validation
24-
rev: 0.5.0
16+
- repo: https://github.com/adrienverge/yamllint.git
17+
rev: v1.38.0
2518
hooks:
26-
- id: upy-package
19+
- id: yamllint
20+
args: [--strict, -c=.yamllint]
21+
- repo: https://github.com/brainelectronics/snippets2changelog
22+
rev: 1.7.0
23+
hooks:
24+
- id: snippets2changelog
2725
args:
28-
- "--setup_file=setup.py"
29-
- "--package_changelog_file=changelog.md"
30-
- "--package_file=package.json"
31-
- "--validate"
26+
- "changelog"
27+
- "changelog.md"
28+
- "--snippets=.snippets"
29+
- "--no-internal"
3230
- repo: https://github.com/brainelectronics/changelog2version
33-
rev: 0.10.0
31+
rev: 0.12.1
3432
hooks:
3533
- id: changelog2version
3634
args:
37-
- "--changelog_file=changelog.md"
35+
- "--changelog_file=changelog.md.new"
3836
- "--version_file=be_upy_blink/version.py"
37+
- "--version_file_type=py"
38+
- "--validate"
39+
- repo: https://github.com/brainelectronics/micropython-package-validation
40+
rev: 0.5.0
41+
hooks:
42+
- id: upy-package
43+
args:
44+
- "--setup_file=setup.py"
45+
- "--package_changelog_file=changelog.md.new"
46+
- "--package_file=package.json"
3947
- "--validate"

requirements-deploy.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# List external packages here
22
# Avoid fixed versions
33
# # to upload package to PyPi or other package hosts
4-
twine>=5.1.1,<6
5-
changelog2version>=0.5.0,<1
6-
snippets2changelog>=1.1.0,<2
4+
twine>=6.2.0,<7
5+
changelog2version>=0.12.1,<1
6+
snippets2changelog>=1.6.0,<2

requirements-test.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# List external packages here
22
# Avoid fixed versions
3-
changelog2version>=0.10.0,<1
4-
coverage>=6.4.2,<7
5-
flake8>=5.0.0,<6
6-
nose2>=0.12.0,<1
7-
setup2upypackage>=0.4.0,<1
8-
snippets2changelog>=1.1.0,<2
9-
pre-commit>=3.3.3,<4
10-
yamllint>=1.29,<2
3+
changelog2version>=0.12.1,<1
4+
coverage>=7.13.5,<8
5+
flake8>=7.3.0,<8
6+
nose2>=0.16.0,<1
7+
setup2upypackage>=0.5.0,<1
8+
snippets2changelog>=1.6.0,<2
9+
pre-commit>=4.5.1,<5
10+
yamllint>=1.38,<2

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# List external packages here
22
# Avoid fixed versions
3-
rshell>=0.0.30,<1.0.0
3+
rshell>=0.0.36,<1.0.0
4+
mpremote>=1.27.0,<2

0 commit comments

Comments
 (0)