-
Notifications
You must be signed in to change notification settings - Fork 13
57 lines (46 loc) · 1.26 KB
/
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
48
49
50
51
52
53
54
55
name: Python Tests
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./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: "."
- uses: robinraju/[email protected]
with:
repository: "Oxen-AI/Oxen"
latest: true
fileName: "oxen-ubuntu-22.04.deb"
out-file-path: "."
- name: Install oxen-server
run: |
sudo dpkg -i /home/runner/work/oxen-release/oxen-release/oxen-server-ubuntu-22.04.deb
sudo dpkg -i /home/runner/work/oxen-release/oxen-release/oxen-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 -e .
pip install -r requirements.txt
- name: Run Tests
run: |
oxen config --name "Bessie Testington" --email "[email protected]"
oxen-server start &
pytest -s tests