Skip to content

Commit

Permalink
fix: Install intelhex for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
florisla committed Oct 10, 2023
1 parent 22799eb commit 16a6f04
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install lint dependencies
run: pip install flake8 pyserial
run: pip install flake8 pyserial intelhex
- name: Run flake8
run: flake8 stm32loader
pylint:
Expand All @@ -56,6 +56,6 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install lint dependencies
run: pip install pylint pyserial
run: pip install pylint pyserial intelhex
- name: Run pylint
run: pylint stm32loader
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install test dependencies
run: pip install tox tox-gh-actions pyserial pytest
run: pip install tox tox-gh-actions pyserial pytest intelhex
- name: Run setup and tests as defined in tox.ini
run: tox
2 changes: 2 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def tests(session):
# see https://github.com/pypa/setuptools/issues/1671
rmtree("./dist", ignore_errors=True)
session.install(".")
session.install("intelhex")
session.install("pytest")
session.chdir("tests")
session.run("pytest", "./")
Expand All @@ -40,6 +41,7 @@ def lint(session):
session.install("pylint")
# pyserial for avoiding a complaint by pylint
session.install("pyserial")
session.install("intelhex")
session.run("pylint", "stm32loader")

session.install("flake8", "flake8-isort")
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ passenv = HOME
deps=
pytest
pyserial
intelhex
commands=
pytest -r a [] tests

Expand Down

0 comments on commit 16a6f04

Please sign in to comment.