(Without Mongo) Simple Tests #1330
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
| name: (Without Mongo) Simple Tests | |
| on: | |
| push: | |
| schedule: | |
| - cron: '0 12 * * *' # Runs every day at 12 PM UTC (7 AM EST) | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: [ "3.11", "3.12" ] | |
| env: | |
| MONGO_ENABLED: false | |
| LMDB_ENABLED: true | |
| timeout-minutes: 60 | |
| if: "!contains(github.event.head_commit.message, 'CI Bot')" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| # cache: "pip" | |
| - name: Show OS Info | |
| run: '[[ "$OSTYPE" == "linux-gnu"* ]] && { echo "OS Type: Linux"; (command -v lsb_release &> /dev/null && lsb_release -a) || cat /etc/os-release; uname -r; } || [[ "$OSTYPE" == "darwin"* ]] && { echo "OS Type: macOS"; sw_vers; uname -r; } || echo "Unsupported OS type: $OSTYPE"' | |
| - name: Start docker compose with redis | |
| run: make services | |
| - name: Upgrade pip | |
| run: python -m pip install --upgrade pip | |
| - name: Test examples | |
| run: bash .github/workflows/run_examples.sh examples false # without mongo | |
| - name: Install all dependencies | |
| run: | | |
| python -m pip install .[all] | |
| python -m pip install .[ml_dev] | |
| - name: List installed packages | |
| run: pip list | |
| - name: Test with pytest and redis | |
| run: | | |
| flowcept --init-settings --full -y | |
| flowcept --config-profile full-online -y | |
| pytest tests --timeout=600 --ignore=tests/adapters/test_tensorboard.py --ignore=tests/misc_tests/telemetry_test.py -m "not llm" -k "not test_decorated_function_timed" | |
| - name: Test notebooks with pytest and redis | |
| run: | | |
| rm -f "${FLOWCEPT_SETTINGS_PATH:-$HOME/.flowcept/settings.yaml}" | |
| flowcept --init-settings --full --dask --mlflow -y | |
| flowcept --config-profile full-online -y | |
| pytest --nbmake "notebooks/" --nbmake-timeout=600 --ignore="notebooks/dask_from_CLI.ipynb" --ignore=notebooks/tensorboard.ipynb | |
| - name: Shut down docker compose | |
| run: make services-stop | |
| - name: Clean up | |
| run: | | |
| make clean | |
| test -d /home/runner/runners/ && find /home/runner/runners/ -type f -name "*.log" -exec sh -c 'echo {}; >"{}"' \; || true | |
| docker image prune -a -f |