-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (41 loc) · 1.34 KB
/
tests.yml
File metadata and controls
53 lines (41 loc) · 1.34 KB
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
name: Tests E2E
on:
push:
branches: [ main ]
pull_request:
branches: [ main, devel ]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install CMake and Build Tools
run: |
sudo apt-get update
sudo apt-get install -y cmake python3-pymongo python3-requests pipx
sudo pipx install conan
echo "/root/.local/bin" >> $GITHUB_PATH
- name: Setup virtual audio device
run: |
sudo apt-get install -y pulseaudio libasound2-plugins
pulseaudio --start --exit-idle-time=-1
- name: Setup conan
run: |
conan profile detect --force
conan remote add privmx ${{ vars.CONAN_ARTIFACTORY }}
- name: Conan Remote Auth
run: conan remote login -p "${{ secrets.CONAN_PASSWORD }}" privmx "${{ vars.CONAN_USER }}"
- name: Build library
run: ./build-with-streams.sh
- name: Upload binaries
run: conan upload "*" --remote=privmx --confirm
- name: Start Backend Services
run: |
cd test
docker compose up -d --wait
- name: Run tests
run: |
source build/build/Debug/generators/conanrun.sh
cd test
python3 e2e_runner.py --max-workers 2 ../build/test "test_env/create_dataset/Dataset/ServerData.ini" "test_env/create_dataset/Dataset"