-
Notifications
You must be signed in to change notification settings - Fork 12
48 lines (39 loc) · 1.17 KB
/
Copy pathtest.yml
File metadata and controls
48 lines (39 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: tests
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
pytest:
name: pytest (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install build essentials + qemu-system-arm
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
build-essential gcc-arm-none-eabi libnewlib-arm-none-eabi qemu-system-arm
- name: Install CPU-only PyTorch
run: |
python -m pip install --upgrade pip
pip install --index-url https://download.pytorch.org/whl/cpu \
"torch>=2.0"
- name: Install atome-llm + test deps
run: pip install -e ".[dev]"
- name: Environment check
run: python check_env.py
- name: pytest
run: pytest -q