From f2da3f9187dff9825f9ddeee6479306aeae5823e Mon Sep 17 00:00:00 2001 From: phildong <35715936+phildong@users.noreply.github.com> Date: Fri, 17 Jun 2022 21:38:21 -0400 Subject: [PATCH] fix: dependencies for minian and CI * pin click version for CI * pin jinja version to 2.11.3 * pin pytest version for CI * pin coverage version for CI fix #208 #206 --- .github/workflows/pyformat.yml | 2 +- .github/workflows/testandcov.yml | 2 +- environment.yml | 1 + requirements/requirements-base.txt | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pyformat.yml b/.github/workflows/pyformat.yml index 62203caa..5d26a2f0 100644 --- a/.github/workflows/pyformat.yml +++ b/.github/workflows/pyformat.yml @@ -24,7 +24,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Format with black run: | - $CONDA/bin/conda install -c conda-forge black==20.8b1 + $CONDA/bin/conda install -c conda-forge black==20.8b1 click==8.0.4 # stop the build if there are Python syntax errors or undefined names $CONDA/bin/black minian - name: Check for modified files diff --git a/.github/workflows/testandcov.yml b/.github/workflows/testandcov.yml index 4ef041f6..4c73d180 100644 --- a/.github/workflows/testandcov.yml +++ b/.github/workflows/testandcov.yml @@ -38,7 +38,7 @@ jobs: environment-file: environment.yml - name: Install test dependencies run: | - conda install -c conda-forge black==20.8b1 pytest pytest-cov pytest-rerunfailures + conda install -c conda-forge black==20.8b1 click==8.0.4 pytest==7.0.1 pytest-cov pytest-rerunfailures coverage==6.3.3 - name: Lint with black run: | black --check minian diff --git a/environment.yml b/environment.yml index cc22944e..65e1d44d 100644 --- a/environment.yml +++ b/environment.yml @@ -41,3 +41,4 @@ dependencies: - pymetis=2020.1 - rechunker=0.3.3 - medpy=0.4.0 + - jinja2=2.11.3 diff --git a/requirements/requirements-base.txt b/requirements/requirements-base.txt index 0fb6a160..84c95e2b 100644 --- a/requirements/requirements-base.txt +++ b/requirements/requirements-base.txt @@ -31,3 +31,4 @@ sparse==0.11.2 pymetis==2020.1 rechunker==0.3.3 medpy==0.4.0 +jinja2==2.11.3