Skip to content

Commit 84990f9

Browse files
Merge pull request #8 from brainelectronics/feature/run-flake8
Run flake8 on every build
2 parents dcd8291 + 619f5a7 commit 84990f9

File tree

5 files changed

+20
-6
lines changed

5 files changed

+20
-6
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ jobs:
2323
python-version: '3.9'
2424
- name: Install build dependencies
2525
run: |
26-
python -m pip install -U setuptools wheel build
2726
if [ -f requirements-deploy.txt ]; then pip install -r requirements-deploy.txt; fi
2827
- name: Build package
2928
run: |

.github/workflows/test-release.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ jobs:
2020
python-version: '3.9'
2121
- name: Install build dependencies
2222
run: |
23-
python -m pip install -U setuptools wheel build
2423
if [ -f requirements-deploy.txt ]; then pip install -r requirements-deploy.txt; fi
2524
- name: Build package
2625
run: |

.github/workflows/test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,12 @@ jobs:
2323
uses: actions/setup-python@v3
2424
with:
2525
python-version: '3.9'
26-
- name: Install dependencies
26+
- name: Install test dependencies
2727
run: |
2828
pip install -r requirements-test.txt
29+
- name: Lint with flake8
30+
run: |
31+
flake8 .
2932
- name: Install deploy dependencies
3033
run: |
3134
python -m pip install --upgrade pip

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# MicroPython package template
22

3-
[![Downloads](https://pepy.tech/badge/be-modbus-wrapper)](https://pepy.tech/project/micropython-package-template)
3+
[![Downloads](https://pepy.tech/badge/micropython-package-template)](https://pepy.tech/project/micropython-package-template)
44
![Release](https://img.shields.io/github/v/release/brainelectronics/micropython-package-template?include_prereleases&color=success)
5-
![Python](https://img.shields.io/badge/python3-Ok-green.svg)
5+
![MicroPython](https://img.shields.io/badge/micropython-Ok-green.svg)
66
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
77
[![codecov](https://codecov.io/github/brainelectronics/micropython-package-template/branch/main/graph/badge.svg)](https://app.codecov.io/github/brainelectronics/micropython-package-template)
8+
[![CI](https://github.com/brainelectronics/micropython-package-template/actions/workflows/release.yml/badge.svg)](https://github.com/brainelectronics/micropython-package-template/actions/workflows/release.yml)
89

910
MicroPython PyPi package template project with auto deploy
1011

changelog.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,17 @@ r"^\#\# \[\d{1,}[.]\d{1,}[.]\d{1,}\] \- \d{4}\-\d{2}-\d{2}$"
1717
-->
1818

1919
## Released
20+
## [0.3.0] - 2022-11-03
21+
### Added
22+
- Lint package with `flake8` with [test workflow](.github/workflows/test.yaml)
23+
- CI upload status badge added to [`README`](README.md)
24+
25+
### Fixed
26+
- Remove not required packages `setuptools`, `wheel` and `build` from release
27+
and test-release workflow files
28+
- Show download of this package on badge instead of `be-modbus-wrapper`
29+
- Show `MicroPython Ok` badge instead of `Python3 Ok` in [`README`](README.md)
30+
2031
## [0.2.0] - 2022-10-22
2132
### Added
2233
- Deploy to [Test Python Package Index](https://test.pypi.org/) on every PR
@@ -54,8 +65,9 @@ r"^\#\# \[\d{1,}[.]\d{1,}[.]\d{1,}\] \- \d{4}\-\d{2}-\d{2}$"
5465
- [`setup.py`](setup.py) and [`sdist_upip.py`](sdist_upip.py) file
5566

5667
<!-- Links -->
57-
[Unreleased]: https://github.com/brainelectronics/micropython-package-template/compare/0.2.0...main
68+
[Unreleased]: https://github.com/brainelectronics/micropython-package-template/compare/0.3.0...main
5869

70+
[0.3.0]: https://github.com/brainelectronics/micropython-package-template/tree/0.3.0
5971
[0.2.0]: https://github.com/brainelectronics/micropython-package-template/tree/0.2.0
6072
[0.1.1]: https://github.com/brainelectronics/micropython-package-template/tree/0.1.1
6173
[0.1.0]: https://github.com/brainelectronics/micropython-package-template/tree/0.1.0

0 commit comments

Comments
 (0)