From 16a6f04560fe7bb59056eef626588496ab6206d5 Mon Sep 17 00:00:00 2001 From: Floris Lambrechts Date: Tue, 10 Oct 2023 10:38:50 +0200 Subject: [PATCH] fix: Install intelhex for testing --- .github/workflows/lint.yaml | 4 ++-- .github/workflows/test.yaml | 2 +- noxfile.py | 2 ++ tox.ini | 1 + 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 4a2d601..1beac03 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -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: @@ -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 diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 962d996..5c23e58 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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 diff --git a/noxfile.py b/noxfile.py index 886a2d4..4165c20 100644 --- a/noxfile.py +++ b/noxfile.py @@ -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", "./") @@ -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") diff --git a/tox.ini b/tox.ini index 076b28d..5ff6b13 100644 --- a/tox.ini +++ b/tox.ini @@ -6,6 +6,7 @@ passenv = HOME deps= pytest pyserial + intelhex commands= pytest -r a [] tests