Repository navigation
43 lines (42 loc) · 1.44 KB
/
Copy pathtest-tsdb.yml
File metadata and controls
43 lines (42 loc) · 1.44 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
name: TSDB
on:
push:
branches: [ main, dev ]
pull_request:
branches: [ main, dev ]
permissions:
contents: read
jobs:
test:
name: TSDB Testing (python ${{ matrix.python-version }})
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: ['3.9', '3.13']
fail-fast: false
steps:
- name: Check out repository code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: ${{ matrix.python-version }}
- name: Start containerized environment
run: docker compose -f test/docker/victoriametrics/compose.yaml up -d
- name: Wait for Victoria Metrics
run: >
timeout 1m bash -c \
'until $(curl -o /dev/null --fail -s http://localhost:8428/metrics); do \
echo "Waiting for Victoria Metrics..."; \
sleep 5; \
done'
- name: Display node logs
run: docker logs victoria-metrics
- name: Install test dependencies
run: python -m pip install -r requirements.txt -r test/requirements.txt
- name: Run query tests
run: pytest -v test/test_tsdb_query.py
- name: Run kernel tracing tests
run: pytest -v test/test_tsdb_kernel_trace.py