|
1 |
| -name: Run Pebblo Integration Tests |
2 |
| -on: |
3 |
| - schedule: |
4 |
| - - cron: '30 2,14 * * *' |
| 1 | +# name: Run Pebblo Integration Tests |
| 2 | +# on: |
| 3 | +# schedule: |
| 4 | +# - cron: '30 2,14 * * *' |
5 | 5 |
|
6 |
| - workflow_dispatch: # Activate this workflow manually |
7 |
| -env: |
8 |
| - PYTHON_VERSION: ${{ github.event.inputs.python_version || '3.11.x' }} |
9 |
| - OPENAI_API_KEY_SECRET: ${{ secrets.OPENAI_API_KEY }} |
10 |
| - SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }} |
11 |
| - SLACK_CH: ${{ secrets.SLACK_CH }} |
12 |
| -jobs: |
13 |
| - Setup_Pebblo_Run_Tests: |
14 |
| - runs-on: ubuntu-latest |
15 |
| - steps: |
16 |
| - - name: Checkout Repository |
17 |
| - uses: actions/checkout@v2 |
| 6 | +# workflow_dispatch: # Activate this workflow manually |
| 7 | +# env: |
| 8 | +# PYTHON_VERSION: ${{ github.event.inputs.python_version || '3.11.x' }} |
| 9 | +# OPENAI_API_KEY_SECRET: ${{ secrets.OPENAI_API_KEY }} |
| 10 | +# SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }} |
| 11 | +# SLACK_CH: ${{ secrets.SLACK_CH }} |
| 12 | +# jobs: |
| 13 | +# Setup_Pebblo_Run_Tests: |
| 14 | +# runs-on: ubuntu-latest |
| 15 | +# steps: |
| 16 | +# - name: Checkout Repository |
| 17 | +# uses: actions/checkout@v2 |
18 | 18 |
|
19 |
| - - name: Set up Python |
20 |
| - uses: actions/setup-python@v4 |
21 |
| - with: |
22 |
| - ref: 'main' |
23 |
| - python-version: ${{ env.PYTHON_VERSION }} |
| 19 | +# - name: Set up Python |
| 20 | +# uses: actions/setup-python@v4 |
| 21 | +# with: |
| 22 | +# ref: 'main' |
| 23 | +# python-version: ${{ env.PYTHON_VERSION }} |
24 | 24 |
|
25 |
| - - name: Build Pebblo |
26 |
| - run: | |
27 |
| - pip install build |
28 |
| - python -m build --wheel |
29 |
| - ls -la dist/ |
| 25 | +# - name: Build Pebblo |
| 26 | +# run: | |
| 27 | +# pip install build |
| 28 | +# python -m build --wheel |
| 29 | +# ls -la dist/ |
30 | 30 |
|
31 |
| - - name: Install Pebblo Packages |
32 |
| - run: | |
33 |
| - echo 'Install Pebblo Package' |
34 |
| - pkg_file=$(ls dist | grep .whl) |
35 |
| - pip3 install dist/$pkg_file --force-reinstall |
36 |
| - pip3 install --upgrade pip |
| 31 | +# - name: Install Pebblo Packages |
| 32 | +# run: | |
| 33 | +# echo 'Install Pebblo Package' |
| 34 | +# pkg_file=$(ls dist | grep .whl) |
| 35 | +# pip3 install dist/$pkg_file --force-reinstall |
| 36 | +# pip3 install --upgrade pip |
37 | 37 |
|
38 |
| - - name: Start Pebblo Server |
39 |
| - run: | |
40 |
| - echo 'Running Pebblo server' |
41 |
| - sleep 10 |
42 |
| - pebblo & |
43 |
| - sleep 120 |
| 38 | +# - name: Start Pebblo Server |
| 39 | +# run: | |
| 40 | +# echo 'Running Pebblo server' |
| 41 | +# sleep 10 |
| 42 | +# pebblo & |
| 43 | +# sleep 120 |
44 | 44 |
|
45 |
| - - name: Verify Pebblo Server |
46 |
| - run: | |
47 |
| - cat /tmp/logs/pebblo.log |
| 45 | +# - name: Verify Pebblo Server |
| 46 | +# run: | |
| 47 | +# cat /tmp/logs/pebblo.log |
48 | 48 |
|
49 |
| - if grep -q "Uvicorn running on http://localhost:8000 (Press CTRL+C to quit)" /tmp/logs/pebblo.log; then |
50 |
| - echo "Server started successfully." |
51 |
| - else |
52 |
| - echo "Unexpected issue detected at server." |
53 |
| - exit 1 |
54 |
| - fi |
| 49 | +# if grep -q "Uvicorn running on http://localhost:8000 (Press CTRL+C to quit)" /tmp/logs/pebblo.log; then |
| 50 | +# echo "Server started successfully." |
| 51 | +# else |
| 52 | +# echo "Unexpected issue detected at server." |
| 53 | +# exit 1 |
| 54 | +# fi |
55 | 55 |
|
56 |
| - - name: Install Required Sample Application Dependencies |
57 |
| - run: | |
58 |
| - echo 'Install Sample Application dependency' |
59 |
| - pip3 install --upgrade pip |
60 |
| - pip3 install -r tests/integration/samples/requirements.txt --force-reinstall |
| 56 | +# - name: Install Required Sample Application Dependencies |
| 57 | +# run: | |
| 58 | +# echo 'Install Sample Application dependency' |
| 59 | +# pip3 install --upgrade pip |
| 60 | +# pip3 install -r tests/integration/samples/requirements.txt --force-reinstall |
61 | 61 |
|
62 |
| - - name: Run Sample RAG App |
63 |
| - run: | |
64 |
| - export OPENAI_API_KEY=$OPENAI_API_KEY_SECRET |
65 |
| - echo 'Running pebblo_csvloader Samples' |
66 |
| - cd tests/integration/samples/pebblo_csv_loader |
67 |
| - python3 pebblo_csvloader.py |
68 |
| - cd ../../ |
69 |
| - sleep 300 |
| 62 | +# - name: Run Sample RAG App |
| 63 | +# run: | |
| 64 | +# export OPENAI_API_KEY=$OPENAI_API_KEY_SECRET |
| 65 | +# echo 'Running pebblo_csvloader Samples' |
| 66 | +# cd tests/integration/samples/pebblo_csv_loader |
| 67 | +# python3 pebblo_csvloader.py |
| 68 | +# cd ../../ |
| 69 | +# sleep 300 |
70 | 70 |
|
71 |
| - - name: Check Pebblo App Run Logs |
72 |
| - run: | |
73 |
| - cat /tmp/logs/pebblo.log |
| 71 | +# - name: Check Pebblo App Run Logs |
| 72 | +# run: | |
| 73 | +# cat /tmp/logs/pebblo.log |
74 | 74 |
|
75 |
| - - name: Upload Pebblo App Run Logs as Artifact |
76 |
| - uses: actions/upload-artifact@v4 |
77 |
| - with: |
78 |
| - name: Pebblo_Report |
79 |
| - path: | |
80 |
| - /tmp/logs/pebblo.log |
| 75 | +# - name: Upload Pebblo App Run Logs as Artifact |
| 76 | +# uses: actions/upload-artifact@v4 |
| 77 | +# with: |
| 78 | +# name: Pebblo_Report |
| 79 | +# path: | |
| 80 | +# /tmp/logs/pebblo.log |
81 | 81 |
|
82 |
| - - name: Check logs for Pebblo Report |
83 |
| - run: | |
84 |
| - if grep -q "INFO - PDF report generated, please check path : /home/runner/.pebblo/" /tmp/logs/pebblo.log; then |
85 |
| - echo "Report Generated Successfully." |
86 |
| - else |
87 |
| - echo "Unexpected issue detected at running sample app." |
88 |
| - cat /tmp/logs/pebblo.log |
89 |
| - exit 1 |
90 |
| - fi |
| 82 | +# - name: Check logs for Pebblo Report |
| 83 | +# run: | |
| 84 | +# if grep -q "INFO - PDF report generated, please check path : /home/runner/.pebblo/" /tmp/logs/pebblo.log; then |
| 85 | +# echo "Report Generated Successfully." |
| 86 | +# else |
| 87 | +# echo "Unexpected issue detected at running sample app." |
| 88 | +# cat /tmp/logs/pebblo.log |
| 89 | +# exit 1 |
| 90 | +# fi |
91 | 91 |
|
92 |
| - - name: Upload Pebblo Report File |
93 |
| - run: | |
94 |
| - cd /home/runner/.pebblo/Pebblo_Automation_Testing_CSVLoader |
95 |
| - curl -F file=@pebblo_report.pdf https://slack.com/api/files.upload -H "Authorization: Bearer $SLACK_TOKEN" -F channels=$SLACK_CH -F "initial_comment=Pebblo Nightly Report" |
| 92 | +# - name: Upload Pebblo Report File |
| 93 | +# run: | |
| 94 | +# cd /home/runner/.pebblo/Pebblo_Automation_Testing_CSVLoader |
| 95 | +# curl -F file=@pebblo_report.pdf https://slack.com/api/files.upload -H "Authorization: Bearer $SLACK_TOKEN" -F channels=$SLACK_CH -F "initial_comment=Pebblo Nightly Report" |
96 | 96 |
|
97 |
| - - name: Report Status if test case or build failure |
98 |
| - if: always() |
99 |
| - uses: ravsamhq/notify-slack-action@master |
100 |
| - with: |
101 |
| - status: ${{ job.status }} |
102 |
| - notify_when: 'failure' |
103 |
| - env: |
104 |
| - SLACK_WEBHOOK_URL: ${{ secrets.WEBHOOK_SECRET }} |
| 97 | +# - name: Report Status if test case or build failure |
| 98 | +# if: always() |
| 99 | +# uses: ravsamhq/notify-slack-action@master |
| 100 | +# with: |
| 101 | +# status: ${{ job.status }} |
| 102 | +# notify_when: 'failure' |
| 103 | +# env: |
| 104 | +# SLACK_WEBHOOK_URL: ${{ secrets.WEBHOOK_SECRET }} |
0 commit comments