From 944503fe42bc084094955752cf1f5214809c9782 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20K=C3=BCmmmerer?= Date: Tue, 7 Nov 2023 16:00:19 +0100 Subject: [PATCH] try fixing failing github test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Matthias Kümmmerer --- .github/workflows/test-package-conda.yml | 30 +++++++++++++++++------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test-package-conda.yml b/.github/workflows/test-package-conda.yml index 2479f4a..cb8dd92 100644 --- a/.github/workflows/test-package-conda.yml +++ b/.github/workflows/test-package-conda.yml @@ -14,11 +14,25 @@ jobs: - "3.9" steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 + - uses: actions/checkout@v2 + - uses: conda-incubator/setup-miniconda@v2 with: python-version: ${{ matrix.python-version }} + #activate-environment: anaconda-client-env + #environment-file: etc/example-environment.yml + #condarc-file: etc/example-condarc.yml + #auto-activate-base: false + channels: conda-forge + - name: Conda info + shell: bash -el {0} + run: conda info + - name: Conda list + shell: pwsh + run: conda list +# - name: Set up Python +# uses: actions/setup-python@v4 +# with: +# python-version: ${{ matrix.python-version }} # - name: Add conda to system path # run: | # # $CONDA is an environment variable pointing to the root of the miniconda directory @@ -26,13 +40,14 @@ jobs: - name: Install dependencies run: | # conda env update --file environment.yml --name base - #conda config --add channels conda-forge - pip install \ + # conda config --add channels conda-forge + conda install \ boltons \ cython \ deprecation \ dill \ diskcache \ + h5py \ imageio \ natsort \ numba \ @@ -52,7 +67,7 @@ jobs: sphinx \ torchvision \ tqdm - pip install h5py # https://github.com/h5py/h5py/issues/1880 + #pip install h5py # https://github.com/h5py/h5py/issues/1880 # - name: Lint with flake8 # run: | # conda install flake8 @@ -62,8 +77,7 @@ jobs: # flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with pytest run: | - # conda install pytest hypothesis - pip install pytest hypothesis + conda install pytest hypothesis python setup.py build_ext --inplace python -m pytest --nomatlab --notheano tests