Skip to content

Commit 73803c0

Browse files
committed
[BE] Add some test automation for check_binary.sh
Make sure latest nightly passes the testing for: - Linux CPU
1 parent 5d7e8e1 commit 73803c0

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Test check_binary
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
paths:
9+
- .github/workflows/test-check-binary.sh
10+
- check_binary.sh
11+
- test/smoke_test/smoke_test.py
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.event_name == 'workflow_dispatch' }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
check_binary:
19+
name: Test check binary
20+
21+
runs-on: ubuntu-22.04
22+
steps:
23+
- uses: actions/checkout@v3
24+
25+
- name: Setup Python
26+
uses: actions/setup-python@v4
27+
with:
28+
python-version: "3.11"
29+
- name: Install latest nightly
30+
run: |
31+
pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
32+
lintrunner init
33+
- name: Run check_binary.sh
34+
run: |
35+
set +e
36+
DESIRED_PYTHON=3.11 DESIRED_CUDA=cpu PACKAGE_TYPE=manywheel ./check_binary.sh

0 commit comments

Comments
 (0)