-
Notifications
You must be signed in to change notification settings - Fork 23
95 lines (83 loc) · 2.29 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: vHive unit tests
on:
push:
branches: [ main ]
paths-ignore:
- 'docs/**'
- '**.md'
pull_request:
branches: [ main ]
paths-ignore:
- 'docs/**'
- '**.md'
workflow_dispatch:
env:
GOOS: linux
GO111MODULE: on
jobs:
timeseriesdb_test:
name: TimeseriesDB Tests
runs-on: ubuntu-20.04
defaults:
run:
working-directory: tools/benchmarking_eventing/timeseriesdb
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.18
- name: Run tests
run: go test -v -race -cover ./...
module_tests:
name: Module Tests
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
module: [utils/tracing/go, utils/tracing/python, utils/storage/go ,utils/storage/python]
steps:
- name: Set up Go 1.18
uses: actions/setup-go@v4
with:
go-version: 1.18
- name: Set up Python 3.x
uses: actions/setup-python@v4
with:
python-version: '3.9.x'
- name: Set up redis
run: |
sudo apt update -y
sudo apt install redis
sudo systemctl start redis
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Get extra python packages
run: pip3 install -r ./utils/tracing/python/requirements.txt && pip3 install -r ./utils/storage/python/requirements.txt
- name: Run tests in submodules
env:
MODULE: ${{ matrix.module }}
AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }}
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}
run: |
make -C $MODULE test
make -C $MODULE test-man
bench-python-tracing:
name: Python Tracing tests (docker-compose)
runs-on: ubuntu-20.04
defaults:
run:
working-directory: ./utils/tracing/integ-tests/client-server
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: build local images
run: make all-image
- name: Python client with docker-compose
run: |
docker-compose up --exit-code-from client
- name: Golang client with docker-compose
run: |
docker-compose --file ./docker-compose-goclient.yml up --exit-code-from client