From 0c7ddba5c7f0ad6c40dfbdd08d3d30eecfefd5b4 Mon Sep 17 00:00:00 2001 From: brockfanning Date: Fri, 19 Jul 2024 09:16:06 -0400 Subject: [PATCH] Pin typer and numpy version to help tests (#354) * Pin typer version to help tests * Also pin numpy to get past other warnings * Update setup.py and test Python 3.10 * Fix python version syntax * Disable codecov upload for now --- .github/workflows/test-pull-requests.yml | 10 +++++----- requirements.txt | 2 ++ setup.py | 3 ++- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test-pull-requests.yml b/.github/workflows/test-pull-requests.yml index f192626d..5816da1d 100644 --- a/.github/workflows/test-pull-requests.yml +++ b/.github/workflows/test-pull-requests.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8, 3.9] + python-version: ['3.7', '3.8', '3.9', '3.10'] steps: - uses: actions/checkout@v2 @@ -26,7 +26,7 @@ jobs: - name: Test with pytest run: | python -m pytest --cov=sdg --cov-report=xml - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v2 - with: - fail_ci_if_error: true + #- name: Upload coverage to Codecov + # uses: codecov/codecov-action@v2 + # with: + # fail_ci_if_error: true diff --git a/requirements.txt b/requirements.txt index db5748a1..6266e886 100644 --- a/requirements.txt +++ b/requirements.txt @@ -17,3 +17,5 @@ Jinja2 rfc3986<2 git+https://github.com/dougmet/yamlmd openpyxl==3.1.0 +typer==0.11.0 +numpy<2 diff --git a/setup.py b/setup.py index 64316479..f11cc2a4 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ 'rfc3986<2', 'pyyaml', 'gitpython', - 'numpy', + 'numpy<2', 'pandas>=1,<2', 'yamlmd', 'jsonschema', @@ -38,6 +38,7 @@ 'natsort', 'openpyxl==3.1.0', 'pydantic>=1,<2', + 'typer==0.11.0', ], dependency_links=[ "git+https://github.com/dougmet/yamlmd",