mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
chore: remove temporary HF token check workflow and marker
This commit is contained in:
@@ -1 +0,0 @@
|
|||||||
Fri Jun 19 10:06:46 UTC 2026
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
name: HF Upload Check
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
paths: ['.github/ci-hf-check-marker']
|
|
||||||
|
|
||||||
permissions: {}
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
check:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
steps:
|
|
||||||
- name: Install hf CLI
|
|
||||||
run: pip install -q -U "huggingface_hub[hf_xet]"
|
|
||||||
|
|
||||||
- name: Test upload to deepsafe/feature-bundles
|
|
||||||
env:
|
|
||||||
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
|
||||||
run: |
|
|
||||||
echo "ci-token-check-$(date -u +%Y%m%dT%H%M%S)" > /tmp/check.txt
|
|
||||||
hf upload deepsafe/feature-bundles /tmp/check.txt .ci-checks/upload-check.txt --repo-type model
|
|
||||||
echo "UPLOAD_OK"
|
|
||||||
|
|
||||||
- name: Verify anonymous download
|
|
||||||
run: |
|
|
||||||
curl -fsSL "https://huggingface.co/deepsafe/feature-bundles/resolve/main/.ci-checks/upload-check.txt" -o /tmp/downloaded.txt
|
|
||||||
cat /tmp/downloaded.txt
|
|
||||||
echo "ANON_DOWNLOAD_OK"
|
|
||||||
|
|
||||||
- name: Cleanup
|
|
||||||
if: always()
|
|
||||||
env:
|
|
||||||
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
|
||||||
run: |
|
|
||||||
python3 -c "from huggingface_hub import HfApi; HfApi().delete_file('.ci-checks/upload-check.txt', repo_id='deepsafe/feature-bundles', repo_type='model'); print('CLEANUP_OK')" || true
|
|
||||||
Reference in New Issue
Block a user