From 7bb68e3896d2cc3cb56fac1831a6acf6c2c03d72 Mon Sep 17 00:00:00 2001 From: Matthias Straka Date: Tue, 5 Sep 2023 12:49:20 +0200 Subject: [PATCH] Reenable testing --- .github/workflows/ci.yml | 6 ++++-- pyOxygenSCPI/__init__.py | 2 +- requirements.txt | 2 +- setup.py | 2 +- tests/test_basic.py | 2 +- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e798d5d..140e8c2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,5 +21,7 @@ jobs: run: pip install -r requirements.txt - name: Analyzing the code with pylint run: pylint pyOxygenSCPI - #- name: Running unit tests with pytest - TODO: has problems with __init__.py file - # run: pytest .. + - name: Installing the package + run: python3 setup.py install + - name: Running unit tests with pytest + run: pytest diff --git a/pyOxygenSCPI/__init__.py b/pyOxygenSCPI/__init__.py index dcc9b9b..9d329ca 100644 --- a/pyOxygenSCPI/__init__.py +++ b/pyOxygenSCPI/__init__.py @@ -3,6 +3,6 @@ Python module to remote control Dewetron Oxygen via SCPI """ __copyright__ = "Copyright 2021 DEWETRON GmbH" -__version__ = '0.0.1' +__version__ = '0.1.0' from .oxygenscpi import OxygenSCPI diff --git a/requirements.txt b/requirements.txt index 0d15aa2..dde6686 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ pytest pylint - +setuptools diff --git a/setup.py b/setup.py index 8a2590e..ccdb90a 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="pyOxygenSCPI", - version="0.0.1", + version="0.1.0", author="Matthias Straka", author_email="matthias.straka@dewetron.com", description="Python library for remote controlling Dewetron Oxygen via the SCPI interface", diff --git a/tests/test_basic.py b/tests/test_basic.py index 21e4970..ad14137 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -3,7 +3,7 @@ pyOxygenSCPI - Unit Tests """ -import pytest + from pyOxygenSCPI import OxygenSCPI def test_construction():