From 67b262a1c6e8ea952be81ce1de25e5da44a4b015 Mon Sep 17 00:00:00 2001 From: Vignesh Venkatasubramanian Vaidyanathan <62492557+VigneshVSV@users.noreply.github.com> Date: Sat, 20 Jul 2024 17:27:51 +0200 Subject: [PATCH] update --- .github/workflows/test.yml | 57 ++++++++++++++++++++------------------ setup.py | 6 ++-- 2 files changed, 33 insertions(+), 30 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d5a89b5..ce5083b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,37 +1,40 @@ name: Python Unit Tests on: - workflow_dispatch: - push: - branches: - - main - pull_request: - branches: - - main + workflow_dispatch: + push: + branches: + - main + pull_request: + branches: + - main + jobs: - test: - runs-on: ubuntu-latest + test: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 - steps: - - name: Checkout code - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: 3.11 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: 3.11 + - name: Install dependencies + run: pip install -r tests/requirements.txt - - name: Install dependencies - run: pip install -r tests/requirements.txt + - name: Run unit tests and generate coverage report + run: | + pip install coverage + coverage run -m unittest discover -s tests -p 'test_*.py' + coverage report -m - - name: Run unit tests and generate coverage report - run: | - pip install coverage - coverage run -m unittest discover -s tests -p 'test_*.py' - coverage report -m + - name: Upload coverage report to codecov + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} - - name: Upload coverage report to codecov - uses: codecov/codecov-action@v4.0.1 - with: - token: ${{ secrets.CODECOV_TOKEN }} + + \ No newline at end of file diff --git a/setup.py b/setup.py index f3acdeb..4934dde 100644 --- a/setup.py +++ b/setup.py @@ -7,8 +7,8 @@ setuptools.setup( name="hololinked", - version="0.1.2", - author="Vignesh Vaidyanathan", + version="0.2.0", + author="Vigneh Vaidyanathan", author_email="vignesh.vaidyanathan@hololinked.dev", description="A ZMQ-based Object Oriented RPC tool-kit with HTTP support for instrument control/data acquisition or controlling generic python objects.", long_description=long_description, @@ -40,7 +40,7 @@ ], python_requires='>=3.7', install_requires=[ - "argon2-cffi>=0.1.10", + "argon2-cffi>=23.0.0", "ifaddr>=0.2.0", "msgspec>=0.18.6", "pyzmq>=25.1.0",