Skip to content

Commit 2fc385d

Browse files
committed
GitHub CI
1 parent 95c5aa6 commit 2fc385d

File tree

7 files changed

+45
-59
lines changed

7 files changed

+45
-59
lines changed

.github/workflows/test.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Largely built from this excellent guide:
2+
# https://shift.click/blog/github-actions-rust/#run-on-pushes-to-main--prs-to-main-or-dev
3+
4+
name: Test
5+
6+
env:
7+
RUST_BACKTRACE: 1
8+
9+
on:
10+
push:
11+
branches:
12+
- master
13+
- v1
14+
pull_request:
15+
branches:
16+
- master
17+
- v1
18+
19+
jobs:
20+
test:
21+
name: Test
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v2
25+
with:
26+
submodules: recursive
27+
28+
- uses: hecrj/setup-rust-action@v1
29+
with:
30+
rust-version: stable
31+
32+
- uses: actions/setup-python@v2
33+
with:
34+
python-version: '3.x'
35+
36+
- uses: Swatinem/rust-cache@v1
37+
38+
- run: pip install -r requirements.txt && ./test.py

.travis.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
venv:
44
virtualenv -p python3 venv
5-
. venv/bin/activate && pip install tox nose pdoc grpcio==1.27.2 grpcio-tools==1.27.2
5+
. venv/bin/activate && pip install -r requirements.txt
66

77
init: venv
88
git submodule update --init --recursive
@@ -23,4 +23,4 @@ release:
2323
. venv/bin/activate && twine upload --skip-existing dist/*
2424

2525
test:
26-
. venv/bin/activate && tox
26+
. venv/bin/activate && ./test.py

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# IndraDB python client [![Build Status](https://travis-ci.org/indradb/python-client.svg?branch=master)](https://travis-ci.org/indradb/python-client)
1+
# IndraDB python client ![CI](https://github.com/indradb/python-client/workflows/Test/badge.svg)
22

33
IndraDB's python client. This uses the server API to enable graph queries and manipulation from python code.
44

ci/install.sh

Lines changed: 0 additions & 15 deletions
This file was deleted.

requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
nose
2+
pdoc
3+
grpcio==1.27.2
4+
grpcio-tools==1.27.2

tox.ini

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)