Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit e1373f2

Browse files
test package unix
1 parent dfa248f commit e1373f2

File tree

1 file changed

+24
-16
lines changed

1 file changed

+24
-16
lines changed

.github/workflows/python-package.yml

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,14 @@ on:
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

1316
env:
1417
MODEL_DIR: models/whispervq # ${{ inputs.model_dir }}
18+
MODEL_NAME: whispervq # ${{ inputs.model_name }}
1519

1620
jobs:
1721
build-and-test:
@@ -47,21 +51,6 @@ jobs:
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: |
@@ -73,5 +62,24 @@ jobs:
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

Comments
 (0)