-
Notifications
You must be signed in to change notification settings - Fork 5
53 lines (51 loc) · 1.91 KB
/
test_syrenn.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
# Adapted from: https://github.com/pubref/rules_protobuf/blob/master/.travis.yml
name: Test SyReNN
on: [push]
jobs:
test-server:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: Build and test the C++ SyReNN server.
run: |
V=4.0.0
OS=linux
ARCH=x86_64
GH_BASE="https://github.com/bazelbuild/bazel/releases/download/$V"
GH_ARTIFACT="bazel-$V-installer-$OS-$ARCH.sh"
CI_BASE="http://ci.bazel.io/job/Bazel/JAVA_VERSION=1.8,PLATFORM_NAME=$OS-$ARCH/lastSuccessfulBuild/artifact/output/ci"
CI_ARTIFACT="bazel--installer.sh"
URL="$GH_BASE/$GH_ARTIFACT"
echo $URL
wget -O install.sh $URL
chmod +x install.sh
./install.sh --user
rm -f install.sh
/home/runner/bin/bazel test syrenn_server/... \
--define BAZEL_PYTHON_ONLY_WARN=true \
--action_env='MAKEFLAGS="-j2 "' \
-j 2
test-client:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: Build and test the Python SyReNN frontend (PySyReNN), skipping one resource-intensive test and a few that rely on the server to be running.
run: |
V=4.0.0
OS=linux
ARCH=x86_64
GH_BASE="https://github.com/bazelbuild/bazel/releases/download/$V"
GH_ARTIFACT="bazel-$V-installer-$OS-$ARCH.sh"
CI_BASE="http://ci.bazel.io/job/Bazel/JAVA_VERSION=1.8,PLATFORM_NAME=$OS-$ARCH/lastSuccessfulBuild/artifact/output/ci"
CI_ARTIFACT="bazel--installer.sh"
URL="$GH_BASE/$GH_ARTIFACT"
echo $URL
wget -O install.sh $URL
chmod +x install.sh
./install.sh --user
rm -f install.sh
git clone https://github.com/95616ARG/bazel_python.git
cd bazel_python
echo y | ./setup_python.sh 3.7.4 $HOME/.bazel_python
cd .. && rm -rf bazel_python
/home/runner/bin/bazel test pysyrenn/...