Repository: mindsdb/mindsdb
Pull request: Install mindsdb from pypi in deploy step
Fixes #804 

Release image (which created in a `deploy` step) needs to contain MindsDB version installed from PyPi repository (not from local source files) In this case we ensure that release image and PyPi have same version.

Problem statement:
Pip install after deploy
As part of our github action testing suite we need to add a step/script that runs *after* the deploy to pypi and tries to install the latest `mindsdb` version deployed there.

This is because, in certain scenarios, the pypi version install can be different from the way we install it in when testing and can thus still fail.

This should only happen when merging to stable, i.e. when a release to pypi is made.

Hints from issue discussion:
Hi I'm new to opensource could you please explain what should has to be done in this issue? Do I need to install mindsdb on my local machine?

Commit message: wakey wakey GitHub Actions

Patch to review:
diff --git a/.github/workflows/mindsdb.yml b/.github/workflows/mindsdb.yml
index a257195636c..698755549b6 100644
--- a/.github/workflows/mindsdb.yml
+++ b/.github/workflows/mindsdb.yml
@@ -68,6 +68,11 @@ jobs:
         CHECK_FOR_UPDATES: False
         DB_MACHINE_KEY: ${{secrets.DB_MACHINE_KEY}}
         DATABASE_CREDENTIALS: ${{secrets.DATABASE_CREDENTIALS}}
+    - name: Install latest version from pypi (just testing)
+      run: |
+        sleep 20
+        pip install mindsdb
+        pip show mindsdb
   deploy_windows_installer:
     runs-on: windows-latest
     needs: test
@@ -124,6 +129,11 @@ jobs:
         python setup.py sdist
         twine upload dist/*
 
+    - name: Install latest version from pypi
+      run: |
+        sleep 20
+        pip install mindsdb
+
     - name: Build and push mindsdb Docker image
       uses: docker/build-push-action@v1
       with:


Code review comments:
diff_hunk: @@ -68,6 +68,11 @@ jobs:
         CHECK_FOR_UPDATES: False
         DB_MACHINE_KEY: ${{secrets.DB_MACHINE_KEY}}
         DATABASE_CREDENTIALS: ${{secrets.DATABASE_CREDENTIALS}}
+    - name: Install latest version from pypi (just testing)
+      run: |
+        sleep 20
+        pip install mindsdb
+        pip show mindsdb
path: .github/workflows/mindsdb.yml
text: @user1:
Was this for testing when you made the PR, if so please remove before merging. all else looks fine.

@author:
Done