Skip to content

Commit 49a8d5f

Browse files
committed
add a scheduled workflow for the nightly pypi binary size validation (compliments pytorch/test-infra#2681)
1 parent 00d0ac6 commit 49a8d5f

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Validate Nightly PyPI Wheel Binary Size
2+
on:
3+
pull_request:
4+
paths:
5+
- .github/workflows/validate-nightly-pypi-wheel-binary-size.yml
6+
workflow_dispatch:
7+
schedule:
8+
# At 2:30 pm UTC (7:30 am PDT)
9+
- cron: "30 14 * * *"
10+
11+
jobs:
12+
nightly-pypi-binary-size-validation:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v3
17+
repository: pytorch/test-infra
18+
- name: Install requirements
19+
run: |
20+
pip3 install -r tools/binary_size_validation/requirements.txt
21+
- name: Run validation
22+
run: |
23+
python tools/binary_size_validation/binary_size_validation.py \
24+
--url https://download.pytorch.org/whl/nightly/torch/ \
25+
--include "pypi" --only-latest-version --threshold 750

0 commit comments

Comments
 (0)