Skip to content

Commit 287c79d

Browse files
authored
Run unit tests in CI (#79)
1 parent af062d3 commit 287c79d

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/unit_tests.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Unit tests
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
8+
jobs:
9+
pytest:
10+
runs-on: ubuntu-24.04
11+
steps:
12+
- name: "Checkout Repo"
13+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
14+
15+
- name: Setup venv
16+
run: |
17+
python3 -m venv bench_venv
18+
source bench_venv/bin/activate
19+
pip install --upgrade pip
20+
pip install --pre --no-cache-dir --find-links https://iree.dev/pip-release-links.html iree-base-compiler iree-base-runtime --upgrade
21+
pip install -r requirements.txt
22+
pip install -r dev-requirements.txt
23+
24+
- name: Run pytest
25+
run: |
26+
source bench_venv/bin/activate
27+
pytest

0 commit comments

Comments
 (0)