-
Notifications
You must be signed in to change notification settings - Fork 11
110 lines (86 loc) · 3.17 KB
/
test-package.yml
File metadata and controls
110 lines (86 loc) · 3.17 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
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Periodic Testing of Pypi Package
on:
push:
branches: [ master ]
schedule:
# Runs every Monday at 08:00 UTC
- cron: '0 8 * * 1'
jobs:
package-testing-parse:
# Use a matrix strategy to test against multiple Python versions
runs-on: ubuntu-latest
strategy:
matrix:
# Define the Python versions you want to test
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v2
# Step to set up Python using the version from the matrix
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# Added step to explicitly output the Python version for clarity in logs
- name: 🐍 Display Python version
run: python -V
- name: Setup Graphviz
uses: ts-graphviz/setup-graphviz@v1
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install massql
if [ -f requirements_test.txt ]; then pip install -r requirements_test.txt; fi
- name: Removing MassQL source
run: |
rm massql -r
- name: Testing Parse
run: |
python -m pytest -vv --cov=massql ./tests/test_parse.py
- name: Run test_translate
run: |
pytest -vv --cov=massql ./tests/test_translate.py
package-testing-data-processing:
# Use a matrix strategy to test against multiple Python versions
runs-on: ubuntu-latest
strategy:
matrix:
# Define the Python versions you want to test
python-version: ["3.11"]
steps:
- uses: actions/checkout@v2
# Step to set up Python using the version from the matrix
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# Added step to explicitly output the Python version for clarity in logs
- name: 🐍 Display Python version
run: python -V
- name: Setup Graphviz
uses: ts-graphviz/setup-graphviz@v1
- name: Download Test Data
run: |
cd tests && sh ./get_data.sh
cd ..
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install massql
if [ -f requirements_test.txt ]; then pip install -r requirements_test.txt; fi
- name: Removing MassQL source
run: |
rm massql -r
- name: Run test_extraction
run: |
pytest -vv --cov=massql ./tests/test_extraction.py
- name: Run test_visualize
run: |
pytest -vv --cov=massql ./tests/test_visualize.py
- name: Run test_file_loading
run: |
pytest -vv --cov=massql ./tests/test_file_loading.py
- name: Run test_query
run: |
pytest -vv --cov=massql ./tests/test_query.py -n 4