Skip to content

Commit

Permalink
Update: test run new CI for package python
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhoangthuan99 committed Jan 6, 2025
1 parent 372425e commit 46cfac8
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -256,19 +256,21 @@ jobs:
conda activate hf-upload
python -m pip install hf-transfer huggingface_hub
huggingface-cli login --token ${{ secrets.HUGGINGFACE_TOKEN_WRITE }} --add-to-git-credential
huggingface-cli upload ${{env.HF_REPO}} venv.zip . --revision ${{env.HF_PREFIX_BRANCH}}-${{ matrix.os }}-${{ matrix.name }}
huggingface-cli upload ${{env.HF_REPO}} venv.zip --revision ${{env.HF_PREFIX_BRANCH}}-${{ matrix.os }}-${{ matrix.name }}
rm -rf venv.zip
huggingface-cli logout
- name: Upload Artifact Windows
if : runner.os == 'windows'
uses: actions/upload-artifact@v4
with:
name: ${{env.MODEL_NAME}}-${{ matrix.os }}-${{ matrix.name }}
path: ${{env.PYTHON_FOLDER}}
include-hidden-files: true
compression-level: 9
shell: pwsh
run: |
Compress-Archive -Path ${{env.PYTHON_FOLDER}}/* -DestinationPath venv.zip
python -m pip install hf-transfer huggingface_hub
huggingface-cli login --token ${{ secrets.HUGGINGFACE_TOKEN_WRITE }} --add-to-git-credential
huggingface-cli upload ${{env.HF_REPO}} venv.zip --revision ${{env.HF_PREFIX_BRANCH}}-${{ matrix.os }}-${{ matrix.name }}
rm -rf venv.zip
huggingface-cli logout
- name: Post Upload windows
Expand Down

0 comments on commit 46cfac8

Please sign in to comment.