-
Notifications
You must be signed in to change notification settings - Fork 86
58 lines (55 loc) · 1.54 KB
/
ci-pydgraph-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
56
57
58
name: ci-pydgraph-tests
on:
push:
branches:
- master
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
branches:
- master
schedule:
- cron: 1 0 * * * # run workflow daily
permissions:
contents: read
jobs:
pydgraph-tests:
runs-on: warp-ubuntu-latest-x64-4x
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- name: Checkout pydgraph repo
uses: actions/checkout@v4
with:
path: pydgraph
repository: hypermodeinc/pydgraph
ref: ${{ github.ref }}
- name: Checkout Dgraph repo # needed for acl tests
uses: actions/checkout@v4
with:
path: dgraph
repository: hypermodeinc/dgraph
ref: main
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: dgraph/go.mod
- name: Build dgraph binary
run: cd dgraph && make docker-image # also builds dgraph binary
- name: Move dgraph binary to gopath
run: cd dgraph && mv dgraph/dgraph ~/go/bin/dgraph
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
cd pydgraph
python -m pip install --upgrade pip
python -m pip install .[dev]
- name: Run tests
run: cd pydgraph && DGRAPH_IMAGE_TAG=local bash scripts/local-test.sh