generated from bit-bots/bitbots_template_repository
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (49 loc) · 1.65 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
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: Setup repository
uses: ./.github/actions/setup-repo
with:
python-version: ${{ matrix.python-version }}
- name: Setup DB with alembic migrations
run: |
cd ./ddlitlab2024/dataset
poetry run alembic upgrade head
- name: Populate DB with dummy data
run: |
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