generated from bit-bots/bitbots_template_repository
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (53 loc) · 1.77 KB
/
test_dataset.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
name: Create DB with example data
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test_dataset:
strategy:
matrix:
include:
- os: ubuntu-22.04
python-version: 3.10.x
- os: ubuntu-24.04
python-version: 3.12.x
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- name: Install dependencies
run: poetry install
- name: Create DB schema
run: poetry run cli db create-schema
- name: Populate DB with dummy data
run: |
poetry run cli db create-schema
poetry run cli db dummy-data -n 2 -s 100 -i 10
- name: Test rosbag import with invalid training data fails
run: |
curl -fsSLO https://data.bit-bots.de/ROSbags/robocup_2024/ID_donna_2024-07-18T15%3A20%3A44/ID_donna_2024-07-18T15%3A20%3A44_0.mcap
poetry run cli db create-schema
set +e
poetry run cli import rosbag ID_donna_2024-07-18T15%3A20%3A44_0.mcap
if [ $? -eq 1 ]; then
echo "Import failed as expected"
else
echo "Import should have failed!"
exit 1
fi
- name: Test rosbag import with valid training data
run: |
curl -fsSLO https://data.bit-bots.de/ROSbags/robocup_2024/ID_donna_2024-07-20T15%3A49%3A20/ID_donna_2024-07-20T15%3A49%3A20_0.mcap
poetry run cli db create-schema
poetry run cli import rosbag ID_donna_2024-07-20T15%3A49%3A20_0.mcap