alexandrainst / alexandra-ml-template

Template for Python-based data science projects in the Alexandra Institute.
https://alexandra.dk/
MIT License
8 stars 1 forks source link

automated workflows fails at building dependencies #2

Closed bourdeet closed 11 months ago

bourdeet commented 12 months ago

When I push a commit, the basic workflow fails at the "installing dependencies" part. Here is the trace of the failure:

Run poetry env use ""
  poetry env use ""
  poetry install --no-interaction --no-cache
  shell: /usr/bin/bash -e {0}
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.11.6/x64
    PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.11.6/x64/lib/pkgconfig
    Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.6/x64
    Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.6/x64
    Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.6/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.11.6/x64/lib

Could not find the python executable 
Error: Process completed with exit code 1.

From the looks of it, poetry fails because the variable ${{ matrix.python-version }} is empty. Could it be that the variable is not defined in docs.yaml? I can see it in ci.yaml but I am not sure if that file is used in this workflow.

saattrupdan commented 11 months ago

Good catch! And you're completely right, the matrix is the culprit. This should now be fixed via the commit https://github.com/alexandrainst/alexandra-ml-template/commit/c02f28b9d781d895ce1ec41b3f1ccb45088dd0a5.