@@ -16,40 +16,38 @@ jobs:
1616 runs-on : ubuntu-latest
1717 steps :
1818 - uses : actions/checkout@v4
19-
19+
2020 - name : Set up Python
2121 uses : actions/setup-python@v4
2222 with :
2323 python-version : ' 3.11'
24-
24+
2525 - name : Cache pip
2626 uses : actions/cache@v3
2727 with :
2828 path : ~/.cache/pip
2929 key : ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}
3030 restore-keys : |
3131 ${{ runner.os }}-pip-
32-
33- - name : Install Poetry
34- run : |
35- curl -sSL https://install.python-poetry.org | python3 -
36- echo "$HOME/.local/bin" >> $GITHUB_PATH
37-
32+
3833 - name : Install dependencies
39- run : poetry install
40-
34+ run : |
35+ pip install --upgrade pip
36+ pip install -r requirements.txt
37+ pip install -e .
38+
4139 - name : Run Black
42- run : poetry run black --check ovmobilebench tests
43-
40+ run : black --check ovmobilebench tests
41+
4442 - name : Run Ruff
45- run : poetry run ruff check ovmobilebench tests
46-
43+ run : ruff check ovmobilebench tests
44+
4745 - name : Run MyPy
48- run : poetry run mypy ovmobilebench
49-
46+ run : mypy ovmobilebench --ignore-missing-imports
47+
5048 - name : Run tests
51- run : poetry run pytest tests/ -v --cov=ovmobilebench --cov-report=xml
52-
49+ run : pytest tests/ -v --cov=ovmobilebench --cov-report=xml
50+
5351 - name : Upload coverage
5452 uses : codecov/codecov-action@v3
5553 with :
@@ -61,20 +59,20 @@ jobs:
6159 runs-on : ubuntu-latest
6260 steps :
6361 - uses : actions/checkout@v4
64-
62+
6563 - name : Set up Python
6664 uses : actions/setup-python@v4
6765 with :
6866 python-version : ' 3.11'
69-
70- - name : Install Poetry
67+
68+ - name : Install build dependencies
7169 run : |
72- curl -sSL https:// install.python-poetry.org | python3 -
73- echo "$HOME/.local/bin" >> $GITHUB_PATH
74-
70+ pip install --upgrade pip
71+ pip install build setuptools wheel
72+
7573 - name : Build package
76- run : poetry build
77-
74+ run : python -m build
75+
7876 - name : Upload artifacts
7977 uses : actions/upload-artifact@v4
8078 with :
@@ -87,62 +85,58 @@ jobs:
8785 runs-on : ubuntu-latest
8886 steps :
8987 - uses : actions/checkout@v4
90-
88+
9189 - name : Set up Python
9290 uses : actions/setup-python@v4
9391 with :
9492 python-version : ' 3.11'
95-
96- - name : Install Poetry
97- run : |
98- curl -sSL https://install.python-poetry.org | python3 -
99- echo "$HOME/.local/bin" >> $GITHUB_PATH
100-
93+
10194 - name : Install dependencies
102- run : poetry install
103-
95+ run : |
96+ pip install --upgrade pip
97+ pip install -r requirements.txt
98+ pip install -e .
99+
104100 - name : Validate example config
105101 run : |
106- poetry run python -c "from ovmobilebench.config.loader import load_experiment; load_experiment('experiments/android_example.yaml')"
107-
102+ python -c "from ovmobilebench.config.loader import load_experiment; load_experiment('experiments/android_example.yaml')"
103+
108104 - name : CLI help test
109105 run : |
110- poetry run ovmobilebench --help
111- poetry run ovmobilebench build --help
112- poetry run ovmobilebench run --help
106+ ovmobilebench --help
107+ ovmobilebench build --help
108+ ovmobilebench run --help
113109
114- # Optional: Run on self-hosted runner with real device
115- device-test :
116- if : github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.message, '[device-test]')
110+ # Optional: Run on a self-hosted runner with a real device
111+ device-test-adb :
112+ if : github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.message, '[device-test-adb ]')
117113 needs : build-package
118114 runs-on : self-hosted
119115 steps :
120116 - uses : actions/checkout@v4
121-
117+
122118 - name : Set up Python
123119 uses : actions/setup-python@v4
124120 with :
125121 python-version : ' 3.11'
126-
127- - name : Install Poetry
128- run : |
129- curl -sSL https://install.python-poetry.org | python3 -
130- echo "$HOME/.local/bin" >> $GITHUB_PATH
131-
122+
132123 - name : Install dependencies
133- run : poetry install
134-
124+ run : |
125+ pip install --upgrade pip
126+ pip install -r requirements.txt
127+ pip install -e .
128+
135129 - name : Check ADB devices
136130 run : adb devices
137-
131+
138132 - name : Run minimal benchmark
139133 env :
140134 DEVICE_SERIAL : ${{ github.event.inputs.device_serial || 'emulator-5554' }}
141135 run : |
142- poetry run ovmobilebench list-devices
136+ ovmobilebench list-devices
143137 # Uncomment when ready:
144- # poetry run ovmobilebench all -c experiments/android_example.yaml --dry-run
145-
138+ # ovmobilebench all -c experiments/android_example.yaml --dry-run
139+
146140 - name : Upload results
147141 if : always()
148142 uses : actions/upload-artifact@v4
0 commit comments