-
-
Notifications
You must be signed in to change notification settings - Fork 283
82 lines (65 loc) · 1.98 KB
/
main.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: visidata-ci-build
on:
pull_request:
branches:
- stable
- develop
push:
branches:
- stable
- develop
jobs:
run-tests:
strategy:
matrix:
python-version: [3.8, 3.9, "3.10", "3.11", "3.12", "3.13"]
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.pythonversion }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Set up Environment
run: |
export PYTHONPATH=~/visidata:~/visidata/visidata
locale
- name: Install Base VisiData
run: pip3 install .
- name: Ensure VisiData works with Base Dependencies
run: vd --version
- name: Ensure VisiData can load a dir
run: vd . --batch
- name: Install lxml dependencies
run: sudo apt install -y libxml2-dev libxslt-dev
- name: Install ping dependencies
run: sudo apt install -y traceroute
- name: Install optional dependencies
run: |
pip3 install ".[test]"
pip3 install pytest
- name: Run unit tests
run: |
pytest -sv visidata/tests/
- name: Run Cmdlog Tests
run: dev/test.sh
shell: bash
- name: Test macros
run: |
mkdir -p ~/.visidata
cp tests/macros/macros.jsonl tests/macros/1.vdj ~/.visidata/
vd --batch -p tests/macros/test_macro.vd --output tests/macros/golden/test_macro.tsv
git --no-pager diff --numstat tests/
git --no-pager diff --exit-code tests/
- name: Test replaying input from stdin
run: |
echo -e '{"a":1}\n{"a":2}' | vd -f jsonl -p dev/stdin.vdj --batch --debug -N
- name: Ensure VisiData can create completions
run: python -v dev/zsh-completion.py
- name: Ensure VisiData does not drop lines from RepeatFiles
run: |
NUMLINES=$(seq 10000 | vd -b | wc -l)
if ! [[ $NUMLINES -eq 10000 ]]; then
exit 1
fi