Closed zoccoler closed 1 year ago
Hmm, this doesn't look like a napari issue per se or even anything related to tests—which is probably why it works locally—but something related to installing miniconda on the runners. That said, looking at your workflow, it doesn't look like the conda installation is ever used? pip is used to install everything...
I think it might be related to mixing defaults (anaconda channel) and conda-forge. Why did it trip up now, no idea. You can see here that the miniconda install is using defaults: https://github.com/BiAPoL/napari-crop/actions/runs/5391343545/jobs/9788049527#step:5:95 but then later you see defaults packages overwritten with conda-forge: https://github.com/BiAPoL/napari-crop/actions/runs/5391343545/jobs/9788049527#step:5:523
So you could either try
Hi @psobolewskiPhD ,
Thanks for the quick response!
Yeah, I wasn't sure where to put this question... Since I usually base these tests on the .yml
file provided with the napari-cookiecutter, I thought I could get more help from people around here.
I think I got a bit better understanding of it now with your points! @jo-mueller and I modified the yml file to remove using conda like you said, and now it is working! Thanks for the hints!
First, I'm glad you got it working. For easier future reference, do you think I should transfer this to the cookiecutter repo? At the same time, looking there, we don't use conda in the workflow? So 🤷♂️
Yeah, idk... maybe nobody needed so far to have packages installed specifically with conda for these tests. I am not against moving/citing it there to raise awareness of this possibility in the future.
🐛 Bug
Hi guys!
I have just updated napari-crop plugin to a new version, but I did not change anything in the workflow file. Still, tests are failing now on Github with Windows and unfortunately I cannot understand why 😕 Tests work fine locally and I am working with a Windows 10 machine. I ran my local tests in a conda environment with python 3.9. This is the error page: https://github.com/BiAPoL/napari-crop/actions/runs/5391343545/jobs/9788049527
Is there anything I must change in the workflow file for this to work?
Thanks for any guidance on this!
To Reproduce
Check the workflow error page: https://github.com/BiAPoL/napari-crop/actions/runs/5391343545/jobs/9788049527 And the workflow file: https://github.com/BiAPoL/napari-crop/blob/8c83d796d36b84bbaa1d679ff8b722de516b656f/.github/workflows/test_and_deploy.yml
Expected behavior
Tests should work the same as local tests, at least for Windows 10 in this case.
Environment
This is my local environment:
Click me
``` # Name Version Build Channel alabaster 0.7.13 pyhd8ed1ab_0 conda-forge aom 3.5.0 h63175ca_0 conda-forge app-model 0.1.4 pyhd8ed1ab_0 conda-forge appdirs 1.4.4 pyh9f0ad1d_0 conda-forge asciitree 0.3.3 py_2 conda-forge asttokens 2.2.1 pyhd8ed1ab_0 conda-forge attrs 23.1.0 pyh71513ae_1 conda-forge autopep8 2.0.2 pypi_0 pypi aws-c-auth 0.6.28 habb20d3_5 conda-forge aws-c-cal 0.5.27 hc655790_0 conda-forge aws-c-common 0.8.20 hcfcfb64_0 conda-forge aws-c-compression 0.2.17 h0a579c1_0 conda-forge aws-c-event-stream 0.3.0 h92d84d2_6 conda-forge aws-c-http 0.7.8 haeac8d2_4 conda-forge aws-c-io 0.13.26 hf956cbd_0 conda-forge aws-c-mqtt 0.8.13 h73587ab_2 conda-forge aws-c-s3 0.3.4 h26b4012_5 conda-forge aws-c-sdkutils 0.1.10 h0a579c1_0 conda-forge aws-checksums 0.1.16 h0a579c1_0 conda-forge aws-crt-cpp 0.20.2 h0db1998_9 conda-forge aws-sdk-cpp 1.10.57 ha442f66_14 conda-forge babel 2.12.1 pyhd8ed1ab_1 conda-forge backcall 0.2.0 pyh9f0ad1d_0 conda-forge backports 1.0 pyhd8ed1ab_3 conda-forge backports.functools_lru_cache 1.6.5 pyhd8ed1ab_0 conda-forge bleach 6.0.0 pypi_0 pypi blosc 1.21.4 hdccc3a2_0 conda-forge bokeh 3.2.0 pyhd8ed1ab_0 conda-forge brotli 1.0.9 hcfcfb64_8 conda-forge brotli-bin 1.0.9 hcfcfb64_8 conda-forge bzip2 1.0.8 h8ffe710_4 conda-forge c-ares 1.19.1 hcfcfb64_0 conda-forge c-blosc2 2.9.3 h183a6f4_0 conda-forge ca-certificates 2023.5.7 h56e8100_0 conda-forge cachey 0.2.1 pyh9f0ad1d_0 conda-forge certifi 2023.5.7 pyhd8ed1ab_0 conda-forge cfitsio 4.2.0 h9ebe7e4_0 conda-forge charls 2.4.2 h1537add_0 conda-forge charset-normalizer 3.1.0 pyhd8ed1ab_0 conda-forge click 8.1.3 win_pyhd8ed1ab_2 conda-forge cloudpickle 2.2.1 pyhd8ed1ab_0 conda-forge colorama 0.4.6 pyhd8ed1ab_0 conda-forge comm 0.1.3 pyhd8ed1ab_0 conda-forge contourpy 1.1.0 py39h1f6ef14_0 conda-forge cytoolz 0.12.0 py39ha55989b_1 conda-forge dask 2023.6.1 pyhd8ed1ab_0 conda-forge dask-core 2023.6.1 pyhd8ed1ab_0 conda-forge dav1d 1.2.1 hcfcfb64_0 conda-forge debugpy 1.6.7 py39h99910a6_0 conda-forge decorator 5.1.1 pyhd8ed1ab_0 conda-forge distributed 2023.6.1 pyhd8ed1ab_0 conda-forge docstring_parser 0.15 pyhd8ed1ab_0 conda-forge docutils 0.17.1 py39hcbf5309_3 conda-forge entrypoints 0.4 pyhd8ed1ab_0 conda-forge exceptiongroup 1.1.1 pypi_0 pypi executing 1.2.0 pyhd8ed1ab_0 conda-forge fasteners 0.17.3 pyhd8ed1ab_0 conda-forge freetype 2.12.1 h546665d_1 conda-forge freetype-py 2.4.0 pyhd8ed1ab_0 conda-forge fsspec 2023.6.0 pyh1a96a4e_0 conda-forge gettext 0.21.1 h5728263_0 conda-forge giflib 5.2.1 h64bf75a_3 conda-forge glib 2.76.3 h12be248_0 conda-forge glib-tools 2.76.3 h12be248_0 conda-forge gst-plugins-base 1.22.4 h001b923_0 conda-forge gstreamer 1.22.4 hb4038d2_0 conda-forge heapdict 1.0.1 py_0 conda-forge hsluv 5.0.2 pyh44b312d_0 conda-forge icu 72.1 h63175ca_0 conda-forge idna 3.4 pyhd8ed1ab_0 conda-forge imagecodecs 2023.1.23 py39hd475b99_2 conda-forge imageio 2.31.1 pyh24c5eb1_0 conda-forge imagesize 1.4.1 pyhd8ed1ab_0 conda-forge importlib-metadata 6.7.0 pyha770c72_0 conda-forge importlib_metadata 6.7.0 hd8ed1ab_0 conda-forge importlib_resources 5.12.0 pyhd8ed1ab_0 conda-forge in-n-out 0.1.7 pyhd8ed1ab_0 conda-forge iniconfig 2.0.0 pypi_0 pypi intel-openmp 2023.1.0 h57928b3_46319 conda-forge ipykernel 6.23.3 pyh6817e22_0 conda-forge ipython 8.14.0 pyh08f2357_0 conda-forge ipython_genutils 0.2.0 py_1 conda-forge jaraco-classes 3.2.3 pypi_0 pypi jedi 0.18.2 pyhd8ed1ab_0 conda-forge jinja2 3.1.2 pyhd8ed1ab_1 conda-forge jsonschema 4.17.3 pyhd8ed1ab_0 conda-forge jupyter_client 8.3.0 pyhd8ed1ab_0 conda-forge jupyter_core 5.3.1 py39hcbf5309_0 conda-forge jxrlib 1.1 h8ffe710_2 conda-forge keyring 24.2.0 pypi_0 pypi kiwisolver 1.4.4 py39h1f6ef14_1 conda-forge krb5 1.20.1 heb0366b_0 conda-forge lazy_loader 0.2 pyhd8ed1ab_0 conda-forge lcms2 2.15 h3e3b177_1 conda-forge lerc 4.0.0 h63175ca_0 conda-forge libabseil 20230125.2 cxx17_h63175ca_2 conda-forge libaec 1.0.6 h63175ca_1 conda-forge libarrow 12.0.0 h71d8ae8_9_cpu conda-forge libavif 0.11.1 ha7b97ba_2 conda-forge libblas 3.9.0 17_win64_mkl conda-forge libbrotlicommon 1.0.9 hcfcfb64_8 conda-forge libbrotlidec 1.0.9 hcfcfb64_8 conda-forge libbrotlienc 1.0.9 hcfcfb64_8 conda-forge libcblas 3.9.0 17_win64_mkl conda-forge libclang 15.0.7 default_h77d9078_2 conda-forge libclang13 15.0.7 default_h77d9078_2 conda-forge libcrc32c 1.1.2 h0e60522_0 conda-forge libcurl 8.1.2 h68f0423_0 conda-forge libdeflate 1.18 hcfcfb64_0 conda-forge libevent 2.1.12 h3671451_1 conda-forge libffi 3.4.2 h8ffe710_5 conda-forge libglib 2.76.3 he8f3873_0 conda-forge libgoogle-cloud 2.12.0 hec1a1f0_0 conda-forge libgrpc 1.55.1 h0c1e3fa_1 conda-forge libhwloc 2.9.1 nocuda_h15da153_6 conda-forge libiconv 1.17 h8ffe710_0 conda-forge libjpeg-turbo 2.1.5.1 hcfcfb64_0 conda-forge liblapack 3.9.0 17_win64_mkl conda-forge libogg 1.3.4 h8ffe710_1 conda-forge libpng 1.6.39 h19919ed_0 conda-forge libprotobuf 4.23.2 h1975477_5 conda-forge libsodium 1.0.18 h8d14728_1 conda-forge libsqlite 3.42.0 hcfcfb64_0 conda-forge libssh2 1.11.0 h7dfc565_0 conda-forge libthrift 0.18.1 h06f6336_2 conda-forge libtiff 4.5.1 h6c8260b_0 conda-forge libutf8proc 2.8.0 h82a8f57_0 conda-forge libvorbis 1.3.7 h0e60522_0 conda-forge libwebp-base 1.3.0 hcfcfb64_0 conda-forge libxcb 1.15 hcd874cb_0 conda-forge libxml2 2.11.4 hc3477c8_0 conda-forge libzlib 1.2.13 hcfcfb64_5 conda-forge libzopfli 1.0.3 h0e60522_0 conda-forge locket 1.0.0 pyhd8ed1ab_0 conda-forge lz4 4.3.2 py39hf617134_0 conda-forge lz4-c 1.9.4 hcfcfb64_0 conda-forge m2w64-gcc-libgfortran 5.3.0 6 conda-forge m2w64-gcc-libs 5.3.0 7 conda-forge m2w64-gcc-libs-core 5.3.0 7 conda-forge m2w64-gmp 6.1.0 2 conda-forge m2w64-libwinpthread-git 5.0.0.4634.697f757 2 conda-forge magicgui 0.7.2 pyhd8ed1ab_0 conda-forge markdown-it-py 3.0.0 pyhd8ed1ab_0 conda-forge markupsafe 2.1.3 py39ha55989b_0 conda-forge matplotlib-inline 0.1.6 pyhd8ed1ab_0 conda-forge mdurl 0.1.0 pyhd8ed1ab_0 conda-forge mkl 2022.1.0 h6a75c08_874 conda-forge more-itertools 9.1.0 pypi_0 pypi msgpack-python 1.0.5 py39h1f6ef14_0 conda-forge msys2-conda-epoch 20160418 1 conda-forge mypy_extensions 1.0.0 pyha770c72_0 conda-forge napari 0.4.17 pyh275ddea_0_pyqt conda-forge napari-console 0.0.8 pyhd8ed1ab_0 conda-forge napari-crop 0.1.8 dev_0Additional context