From: Robin Krens Date: Thu, 15 Feb 2024 13:36:16 +0000 (+0100) Subject: pytest.yml: added testroutine pipeline X-Git-Tag: v0.0.1~1 X-Git-Url: https://robinkrens.nl/gitweb/?a=commitdiff_plain;h=dea952b1178bc151620567548827e6f028b47626;p=renesas-ra-flasher pytest.yml: added testroutine pipeline --- diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml new file mode 100644 index 0000000..d3be369 --- /dev/null +++ b/.github/workflows/pytest.yml @@ -0,0 +1,29 @@ +name: pytest + +on: + push: + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.9 + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install -e . + + - name: Run pytest + run: | + pytest + diff --git a/tests/test_parse.py b/tests/test_parse.py index 1cf8272..b18673d 100644 --- a/tests/test_parse.py +++ b/tests/test_parse.py @@ -1,4 +1,4 @@ -from src.RAPacker import calc_sum, unpack_pkt, pack_pkt +from raflash.RAPacker import calc_sum, unpack_pkt, pack_pkt import pytest def test_calc_sum():