Skip to content

Commit 1ee0b08

Browse files
committed
updating
1 parent df84b0b commit 1ee0b08

File tree

1 file changed

+42
-6
lines changed

1 file changed

+42
-6
lines changed

.github/workflows/test-package.yml

Lines changed: 42 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ jobs:
3131
- name: Setup Graphviz
3232
uses: ts-graphviz/setup-graphviz@v1
3333

34-
- name: Download Test Data
35-
run: |
36-
cd tests && sh ./get_data.sh
37-
cd ..
38-
3934
- name: Install dependencies
4035
run: |
4136
python -m pip install --upgrade pip
@@ -54,6 +49,44 @@ jobs:
5449
run: |
5550
pytest -vv --cov=massql ./tests/test_translate.py
5651
52+
package-testing-data-processing:
53+
# Use a matrix strategy to test against multiple Python versions
54+
runs-on: ubuntu-latest
55+
strategy:
56+
matrix:
57+
# Define the Python versions you want to test
58+
python-version: ["3.9"]
59+
steps:
60+
- uses: actions/checkout@v2
61+
62+
# Step to set up Python using the version from the matrix
63+
- name: Set up Python ${{ matrix.python-version }}
64+
uses: actions/setup-python@v2
65+
with:
66+
python-version: ${{ matrix.python-version }}
67+
68+
# Added step to explicitly output the Python version for clarity in logs
69+
- name: 🐍 Display Python version
70+
run: python -V
71+
72+
- name: Setup Graphviz
73+
uses: ts-graphviz/setup-graphviz@v1
74+
75+
- name: Download Test Data
76+
run: |
77+
cd tests && sh ./get_data.sh
78+
cd ..
79+
80+
- name: Install dependencies
81+
run: |
82+
python -m pip install --upgrade pip
83+
pip install massql
84+
if [ -f requirements_test.txt ]; then pip install -r requirements_test.txt; fi
85+
86+
- name: Removing MassQL source
87+
run: |
88+
rm massql -r
89+
5790
- name: Run test_extraction
5891
run: |
5992
pytest -vv --cov=massql ./tests/test_extraction.py
@@ -68,4 +101,7 @@ jobs:
68101
69102
- name: Run test_query
70103
run: |
71-
pytest -vv --cov=massql ./tests/test_query.py -n 4
104+
pytest -vv --cov=massql ./tests/test_query.py -n 4
105+
106+
107+

0 commit comments

Comments
 (0)