File tree Expand file tree Collapse file tree 1 file changed +71
-0
lines changed Expand file tree Collapse file tree 1 file changed +71
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Compatibility Test on ARM64
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - main
7+ paths :
8+ - ' auto_round/**'
9+ - ' auto_round_extension/**'
10+ - ' setup.py'
11+ - ' setup.cfg'
12+ - ' requirements.txt'
13+ - ' requirements-cpu.txt'
14+ - ' .github/workflows/compatibility-test.yml'
15+ - ' !**/*.md'
16+ push :
17+ workflow_dispatch :
18+
19+ concurrency :
20+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
21+ cancel-in-progress : true
22+
23+ jobs :
24+ compatibility-test-arm :
25+ name : ${{ matrix.os-name }} on ARM64
26+ runs-on : ${{ matrix.os }}
27+ timeout-minutes : 20
28+ strategy :
29+ fail-fast : false
30+ matrix :
31+ include :
32+ - os : macos-latest
33+ os-name : macOS
34+ shell : bash
35+ - os : ubuntu-24.04-arm
36+ os-name : Linux
37+ shell : bash
38+ - os : windows-11-arm
39+ os-name : Windows
40+ shell : pwsh
41+
42+ steps :
43+ - name : Checkout code
44+ uses : actions/checkout@v6
45+
46+ - name : Set up Python
47+ uses : actions/setup-python@v6
48+ with :
49+ python-version : ' 3.12'
50+
51+ - name : Verify ARM architecture
52+ shell : ${{ matrix.shell }}
53+ run : |
54+ python -c "import platform; print(f'Architecture: {platform.machine()}')"
55+
56+ - name : Install dependencies
57+ shell : ${{ matrix.shell }}
58+ run : |
59+ python -m pip install --upgrade pip uv
60+ uv pip install -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cpu
61+ uv pip install .
62+ pip list
63+ env :
64+ PYTHONUNBUFFERED : ' 1'
65+ UV_NO_PROGRESS : ' 1'
66+ UV_SYSTEM_PYTHON : ' 1'
67+
68+ - name : Run compatibility test
69+ shell : ${{ matrix.shell }}
70+ run : |
71+ python -c "import auto_round"
You can’t perform that action at this time.
0 commit comments