Skip to content

Commit

Permalink
[BE] Add some test automation for check_binary.sh
Browse files Browse the repository at this point in the history
Make sure latest nightly passes the testing for:
 - Linux CPU
  • Loading branch information
malfet committed Dec 10, 2023
1 parent 5d7e8e1 commit 73803c0
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test-check-binary.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Test check_binary

on:
push:
branches:
- main
pull_request:
paths:
- .github/workflows/test-check-binary.sh
- check_binary.sh
- test/smoke_test/smoke_test.py

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.event_name == 'workflow_dispatch' }}
cancel-in-progress: true

jobs:
check_binary:
name: Test check binary

runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install latest nightly
run: |
pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
lintrunner init
- name: Run check_binary.sh
run: |
set +e
DESIRED_PYTHON=3.11 DESIRED_CUDA=cpu PACKAGE_TYPE=manywheel ./check_binary.sh

0 comments on commit 73803c0

Please sign in to comment.