-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #184 from ORNL/dev
Main < Dev
- Loading branch information
Showing
76 changed files
with
2,469 additions
and
1,170 deletions.
There are no files selected for viewing
This file contains 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 file contains 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 file contains 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 file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: (With and Without Mongo) Tests on py11 | ||
on: [pull_request] | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 40 | ||
env: | ||
MONGO_ENABLED: true | ||
LMDB_ENABLED: true | ||
|
||
if: "!contains(github.event.head_commit.message, 'CI Bot')" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
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-mongo | ||
|
||
- name: Upgrade pip | ||
run: python -m pip install --upgrade pip | ||
|
||
- name: Show Python version | ||
run: python --version && pip --version | ||
|
||
- name: Test examples | ||
run: bash .github/workflows/run_examples.sh examples true # with mongo | ||
|
||
- name: Install all dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
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: | | ||
export MONGO_ENABLED=true | ||
export LMDB_ENABLED=true | ||
python -c "from flowcept.configs import MONGO_ENABLED, LMDB_ENABLED; print('MONGO?', MONGO_ENABLED); print('LMDB?', LMDB_ENABLED)" | ||
make tests | ||
- name: Test notebooks with pytest and redis | ||
run: pytest --nbmake "notebooks/" --nbmake-timeout=600 --ignore="notebooks/dask_from_CLI.ipynb" | ||
|
||
- name: Stop services | ||
run: make services-stop-mongo |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: (Without Mongo) Tests on py11 | ||
on: [pull_request] | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 40 | ||
env: | ||
MONGO_ENABLED: false | ||
if: "!contains(github.event.head_commit.message, 'CI Bot')" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
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: Show Python version | ||
run: python --version && pip --version | ||
|
||
- name: Test examples | ||
run: bash .github/workflows/run_examples.sh examples false # without mongo | ||
|
||
- name: Install all dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
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: | | ||
make tests | ||
- name: Test notebooks with pytest and redis | ||
run: pytest --nbmake "notebooks/" --nbmake-timeout=600 --ignore="notebooks/dask_from_CLI.ipynb" --ignore="notebooks/analytics.ipynb" | ||
|
||
- name: Stop services | ||
run: make services-stop |
This file contains 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 file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: (Without Mongo) Unit, integration, and notebook tests | ||
on: | ||
push: | ||
schedule: | ||
- cron: '0 12 * * *' # Runs every day at 12 PM UTC (7 AM EST) | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
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 3.10 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
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 # with 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: | | ||
make tests | ||
- name: Test notebooks with pytest and redis | ||
run: pytest --nbmake "notebooks/" --nbmake-timeout=600 --ignore="notebooks/dask_from_CLI.ipynb" --ignore="notebooks/analytics.ipynb" | ||
|
||
- name: Shut down docker compose | ||
run: make services-stop | ||
|
||
- name: Clean up | ||
run: | | ||
make clean | ||
find /home/runner/runners/ -type f -name "*.log" -exec sh -c 'echo {}; >"{}"' \; |
Oops, something went wrong.