Chema JMLizano commited on
Commit
23cc388
·
unverified ·
1 Parent(s): 2601533

Add Github actions for testing on Pr (#61)

Browse files

* Add testing workflow
---------

Co-authored-by: JMLizano <[email protected]>

Files changed (1) hide show
  1. .github/workflows/test.yaml +44 -0
.github/workflows/test.yaml ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: test
2
+
3
+ on:
4
+ pull_request:
5
+ push:
6
+ branches: [main]
7
+
8
+ jobs:
9
+ test:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v3
13
+
14
+ - name: Install uv
15
+ uses: astral-sh/setup-uv@v5
16
+ with:
17
+ enable-cache: true
18
+
19
+ - uses: actions/setup-python@v5
20
+ with:
21
+ python-version: "3.12"
22
+
23
+ - name: Install dependencies
24
+ run: |
25
+ eval `ssh-agent -s`
26
+ ssh-add - <<< '${{ secrets.LYNXSCRIBE_DEPLOY_KEY }}'
27
+ uv pip install -e lynxkite-core/[dev] lynxkite-app/[dev] lynxkite-graph-analytics/[dev] lynxkite-lynxscribe/ lynxkite-pillow-example/
28
+ env:
29
+ UV_SYSTEM_PYTHON: 1
30
+
31
+ - name: Run core tests
32
+ run: |
33
+ cd lynxkite-core
34
+ pytest
35
+
36
+ - name: Run app tests
37
+ run: |
38
+ cd lynxkite-app
39
+ pytest
40
+
41
+ - name: Run graph analytics tests
42
+ run: |
43
+ cd lynxkite-graph-analytics
44
+ pytest