From dea952b1178bc151620567548827e6f028b47626 Mon Sep 17 00:00:00 2001 From: Robin Krens Date: Thu, 15 Feb 2024 14:36:16 +0100 Subject: [PATCH] pytest.yml: added testroutine pipeline --- .github/workflows/pytest.yml | 29 +++++++++++++++++++++++++++++ tests/test_parse.py | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pytest.yml 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(): -- 2.7.4