88 model_dir :
99 description : " Path to model directory in janhq/models repo"
1010 required : true
11+ model_name :
12+ description : " name of model to be release"
13+ required : true
1114
1215
1316env :
1417 MODEL_DIR : models/whispervq # ${{ inputs.model_dir }}
18+ MODEL_NAME : whispervq # ${{ inputs.model_name }}
1519
1620jobs :
1721 build-and-test :
4751 with :
4852 python-version : " 3.11"
4953
50- - name : prepare python package windows
51- if : runner.os == 'windows'
52- shell : cmd
53- run : |
54- where python3
55- for /f "delims=" %%a in ('where python') do set "PYTHON_PATH=%%a"
56- echo %PYTHON_PATH%
57-
58- - name : prepare python package windows
59- if : runner.os != 'windows'
60- run : |
61- PYTHON_PATH=$(which python)
62- echo $PYTHON_PATH
63-
64-
6554 # - name: Install dependencies Windows and Linux
6655 # if: runner.os == 'windows' || runner.os == 'linux'
6756 # run: |
7362 # run: |
7463 # python3 -m pip install --upgrade pip
7564 # python3 -m pip install -r ${{env.MODEL_DIR}}/requirements.txt
65+ - name : prepare python package windows
66+ if : runner.os == 'windows'
67+ shell : cmd
68+ run : |
69+ for /f "delims=" %%a in ('where python') do set "PYTHON_PATH=%%a"
70+ echo %PYTHON_PATH%
71+
72+ - name : prepare python package unix
73+ if : runner.os != 'windows'
74+ run : |
75+ PYTHON_PATH=$(which python)
76+ echo $PYTHON_PATH
77+ PYTHON_FOLDER=$(dirname $(dirname "$PYTHON_PATH"))
78+ echo "PYTHON_FOLDER=$PYTHON_FOLDER" >> $GITHUB_ENV
79+ echo "github end PYTHON_FOLDER: ${{env.PYTHON_FOLDER}}"
7680
77-
81+ - name : Upload Artifact
82+ uses : actions/upload-artifact@v4
83+ with :
84+ name : ${{env.MODEL_NAME}}-${{ matrix.os }}-${{ matrix.name }}
85+ path : ${{env.PYTHON_FOLDER}}
0 commit comments