-
Notifications
You must be signed in to change notification settings - Fork 14
49 lines (39 loc) · 969 Bytes
/
unit_tests.yml
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
name: Python Tests
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: $GITHUB_WORKSPACE/oxen
steps:
- uses: actions/checkout@v3
- uses: robinraju/[email protected]
with:
repository: "Oxen-AI/Oxen"
latest: true
fileName: "oxen-server-ubuntu-22.04.deb"
out-file-path: "oxen-server"
- name: Install oxen-server
run: |
sudo dpkg -i $GITHUB_WORKSPACE/oxen/oxen-server/oxen-server-ubuntu-22.04.deb
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install Python Dependencies
run: |
python -m pip install --upgrade pip
pip install maturin
pip install pytest
pip install -e .
- name: Run Tests
run: |
oxen-server start &
pytest -s tests