Skip to content

Commit 5865615

Browse files
authored
Merge pull request #129 from opentensor/feat/thewhaleking/tests
Add GH test runner
2 parents f9776bc + f62e0eb commit 5865615

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Run Unit Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- staging
8+
pull_request:
9+
branches:
10+
- main
11+
- staging
12+
13+
jobs:
14+
run-tests:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Check out repository
18+
uses: actions/checkout@v4
19+
20+
- name: Install uv
21+
uses: astral-sh/setup-uv@v4
22+
with:
23+
python-version: 3.13
24+
25+
- name: install dependencies
26+
run: |
27+
uv venv .venv
28+
source .venv/bin/activate
29+
uv pip install .[dev]
30+
31+
- name: Run pytest
32+
run: |
33+
source .venv/bin/activate
34+
pytest tests

0 commit comments

Comments
 (0)