Uncomment debug_query function call in tests #22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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.9", "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.9"] | |
| 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 | |