-
Notifications
You must be signed in to change notification settings - Fork 632
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'xet-integration' of github.com:huggingface/huggingface_…
…hub into xet-download-workflow
- Loading branch information
Showing
5 changed files
with
89 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ on: | |
- "v*.rc*" | ||
|
||
jobs: | ||
test_on_transformers: | ||
trigger_rc_testing: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
|
@@ -32,6 +32,15 @@ jobs: | |
git config user.name "Hugging Face Bot (RC Testing)" | ||
git config user.email "[email protected]" | ||
- name: Wait for prerelease to be out on PyPI | ||
run: | | ||
VERSION=${{ steps.get-version.outputs.VERSION }} | ||
echo "Waiting for huggingface-hub==${VERSION} to be available on PyPI" | ||
while ! pip install huggingface-hub==${VERSION}; do | ||
echo "huggingface-hub==${VERSION} not available yet, retrying in 15s" | ||
sleep 15 | ||
done | ||
- name: Create test branch and update dependencies | ||
id: create-pr | ||
run: | | ||
|
@@ -43,21 +52,25 @@ jobs: | |
git checkout -b $BRANCH_NAME | ||
# Update dependencies using sed | ||
sed -i -E 's/"huggingface-hub>=0.*"/"huggingface-hub==${VERSION}"/' setup.py | ||
sed -i -E "s/\"huggingface-hub>=0.*\"/\"huggingface-hub==${VERSION}\"/" setup.py | ||
git add setup.py | ||
# Only if the target repo is transformers | ||
if [ "${{ matrix.target-repo }}" = "transformers" ]; then | ||
sed -i -E 's/"huggingface-hub>=0.*"/"huggingface-hub==${VERSION}"/' src/transformers/dependency_versions_table.py | ||
sed -i -E "s/\"huggingface-hub>=0.*\"/\"huggingface-hub==${VERSION}\"/" src/transformers/dependency_versions_table.py | ||
git add src/transformers/dependency_versions_table.py | ||
fi | ||
# Only if the target repo is diffusers | ||
if [ "${{ matrix.target-repo }}" = "diffusers" ]; then | ||
sed -i -E 's/"huggingface-hub":.*/"huggingface-hub": "huggingface-hub==${VERSION}",/' src/diffusers/dependency_versions_table.py | ||
sed -i -E "s/\"huggingface-hub\":.*/\"huggingface-hub\": \"huggingface-hub==${VERSION}\",/" src/diffusers/dependency_versions_table.py | ||
git add src/diffusers/dependency_versions_table.py | ||
fi | ||
# Any line with `uv pip install --prerelease=allow` in the `.github/` folder must be updated with `--prerelease=allow` flag | ||
find .github/workflows/ -type f -exec sed -i 's/uv pip install /uv pip install --prerelease=allow /g' {} + | ||
git add .github/workflows/ | ||
# Commit and push changes | ||
git --no-pager diff --staged | ||
git commit -m "Test hfh ${VERSION}" | ||
|
@@ -67,4 +80,4 @@ jobs: | |
run: | | ||
VERSION=${{ steps.get-version.outputs.VERSION }} | ||
echo "https://github.com/huggingface/${{ matrix.target-repo }}/actions" | ||
echo "https://github.com/huggingface/${{ matrix.target-repo }}/compare/main...ci-test-huggingface-hub-${VERSION}" | ||
echo "https://github.com/huggingface/${{ matrix.target-repo }}/compare/main...ci-test-huggingface-hub-${VERSION}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters