-
Notifications
You must be signed in to change notification settings - Fork 4
52 lines (44 loc) · 1.6 KB
/
test_oonipipeline.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
name: test oonipipeline
on: push
jobs:
run_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install hatch
run: pip install hatch
- name: Set up datadir cache
uses: actions/cache@v3
with:
path: oonipipeline/tests/data/datadir/
key: oonipipeline-tests-data-datadir
- name: Set up measurements cache
uses: actions/cache@v3
with:
path: oonipipeline/tests/data/measurements/
key: oonipipeline-tests-data-measurements
- name: Set up raw_measurements cache
uses: actions/cache@v3
with:
path: oonipipeline/tests/data/raw_measurements/
key: oonipipeline-tests-data-raw_measurements-${{ hashFiles('tests/conftest.py') }}
- name: Install clickhouse
run: |
sudo apt-get install -y apt-transport-https ca-certificates dirmngr
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 8919F6BD2B48D754
echo "deb https://packages.clickhouse.com/deb stable main" | sudo tee \
/etc/apt/sources.list.d/clickhouse.list
sudo apt-get update
sudo apt-get install -y clickhouse-server clickhouse-client
- name: Run all tests
run: hatch run cov
working-directory: ./oonipipeline/
- name: Upload coverage to codecov
uses: codecov/codecov-action@v3
with:
flags: oonipipeline
working-directory: ./oonipipeline/