From 70997b7d2dcdc14172cb256fd55dc649feb7ded9 Mon Sep 17 00:00:00 2001 From: AliAl-Gburi Date: Tue, 31 Oct 2023 14:03:52 +0100 Subject: [PATCH] tests --- .github/workflows/deploy-package.yml | 8 +++++--- requirements.txt | 3 ++- setup.py | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy-package.yml b/.github/workflows/deploy-package.yml index 62730c4..e5ba8ac 100644 --- a/.github/workflows/deploy-package.yml +++ b/.github/workflows/deploy-package.yml @@ -14,13 +14,15 @@ jobs: uses: actions/setup-python@v4 with: python-version: "3.11" - - name: Install twine + - name: Install requirements run: >- - pip install twine + pip install -r requirements.txt + - name: Run tests + run: >- + pytest tests/* - name: Build package run: >- python setup.py sdist - name: Upload to pypi run: >- twine upload dist/* -u __token__ -p ${{ secrets.PYPI_TOKEN }} - \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index e0b9d12..455b4c9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -11,4 +11,5 @@ pyarrow==13.0.0 Pygments==2.16.1 PyJWT==2.8.0 pynvml==11.5.0 -pyparsing==3.1.1 \ No newline at end of file +pyparsing==3.1.1 +pytest diff --git a/setup.py b/setup.py index 9546d1a..3a0d807 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ # run the installation of our mlflow_emissions_sdk setup( name="mlflow_emissions_sdk", - version="0.16.2", + version="0.16.3", packages=["mlflow_emissions_sdk"], description="tracks carbon emissions and logs it to mlfow", install_requires=requirements,