Skip to content

Commit d6cdc04

Browse files
committed
updating
1 parent 34724bb commit d6cdc04

1 file changed

Lines changed: 104 additions & 8 deletions

File tree

.github/workflows/test-unit.yml

Lines changed: 104 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ on:
1111

1212
jobs:
1313
unit-testing-parse:
14-
1514
runs-on: ubuntu-latest
16-
1715
steps:
1816
- uses: actions/checkout@v2
1917
- name: Set up Python 3.9
@@ -28,11 +26,109 @@ jobs:
2826
pip install flake8 pytest
2927
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
3028
if [ -f requirements.txt ]; then pip install -r requirements_test.txt; fi
31-
- name: Download Test Data
32-
run: |
33-
cd tests && sh ./get_data.sh
34-
cd ..
35-
- name: Major Testing
29+
- name: Testing
3630
run: |
37-
pytest --cov=massql -vv ./tests/ -n 3
31+
pytest -vv --cov=massql ./tests/test_parse.py
3832
33+
test-translate:
34+
runs-on: ubuntu-latest
35+
needs: unit-testing-parse
36+
steps:
37+
- uses: actions/checkout@v2
38+
- uses: actions/setup-python@v2
39+
with:
40+
python-version: 3.9
41+
- uses: ts-graphviz/setup-graphviz@v1
42+
- name: Install dependencies
43+
run: |
44+
python -m pip install --upgrade pip
45+
pip install flake8 pytest pytest-cov
46+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
47+
if [ -f requirements_test.txt ]; then pip install -r requirements_test.txt; fi
48+
- name: Run test_translate
49+
run: |
50+
pytest -vv --cov=massql ./tests/test_translate.py
51+
52+
test-extraction:
53+
runs-on: ubuntu-latest
54+
needs: unit-testing-parse
55+
steps:
56+
- uses: actions/checkout@v2
57+
- uses: actions/setup-python@v2
58+
with:
59+
python-version: 3.9
60+
- uses: ts-graphviz/setup-graphviz@v1
61+
- name: Install dependencies
62+
run: |
63+
python -m pip install --upgrade pip
64+
pip install flake8 pytest pytest-cov
65+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
66+
if [ -f requirements_test.txt ]; then pip install -r requirements_test.txt; fi
67+
- name: Run test_extraction
68+
run: |
69+
pytest -vv --cov=massql ./tests/test_extraction.py
70+
71+
test-visualize:
72+
runs-on: ubuntu-latest
73+
needs: unit-testing-parse
74+
steps:
75+
- uses: actions/checkout@v2
76+
- uses: actions/setup-python@v2
77+
with:
78+
python-version: 3.9
79+
- uses: ts-graphviz/setup-graphviz@v1
80+
- name: Install dependencies
81+
run: |
82+
python -m pip install --upgrade pip
83+
pip install flake8 pytest pytest-cov
84+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
85+
if [ -f requirements_test.txt ]; then pip install -r requirements_test.txt; fi
86+
- name: Run test_visualize
87+
run: |
88+
pytest -vv --cov=massql ./tests/test_visualize.py
89+
90+
test-fileloading:
91+
runs-on: ubuntu-latest
92+
needs: unit-testing-parse
93+
steps:
94+
- uses: actions/checkout@v2
95+
- uses: actions/setup-python@v2
96+
with:
97+
python-version: 3.9
98+
- uses: ts-graphviz/setup-graphviz@v1
99+
- name: Install dependencies
100+
run: |
101+
python -m pip install --upgrade pip
102+
pip install flake8 pytest pytest-cov
103+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
104+
if [ -f requirements_test.txt ]; then pip install -r requirements_test.txt; fi
105+
- name: Download Test Data
106+
run: |
107+
cd tests && sh ./get_data.sh
108+
cd ..
109+
- name: Run test_file_loading
110+
run: |
111+
pytest -vv --cov=massql ./tests/test_file_loading.py
112+
113+
test-query:
114+
runs-on: ubuntu-latest
115+
needs: unit-testing-parse
116+
steps:
117+
- uses: actions/checkout@v2
118+
- uses: actions/setup-python@v2
119+
with:
120+
python-version: 3.9
121+
- uses: ts-graphviz/setup-graphviz@v1
122+
- name: Install dependencies
123+
run: |
124+
python -m pip install --upgrade pip
125+
pip install flake8 pytest pytest-cov pytest-xdist
126+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
127+
if [ -f requirements_test.txt ]; then pip install -r requirements_test.txt; fi
128+
- name: Download Test Data
129+
run: |
130+
cd tests && sh ./get_data.sh
131+
cd ..
132+
- name: Run test_query
133+
run: |
134+
pytest -vv --cov=massql ./tests/test_query.py -n 4

0 commit comments

Comments
 (0)