From d5160e354e9d2639a5509efa54945d7cc368d0e9 Mon Sep 17 00:00:00 2001 From: Pavel Shibaev Date: Wed, 2 Oct 2024 22:11:01 +0200 Subject: [PATCH] (feat) Add workflow to test local pip installation --- .github/workflows/test-pip.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/test-pip.yml diff --git a/.github/workflows/test-pip.yml b/.github/workflows/test-pip.yml new file mode 100644 index 00000000..7fd9d45e --- /dev/null +++ b/.github/workflows/test-pip.yml @@ -0,0 +1,33 @@ +name: Test package installation by running a basic example + +on: + pull_request: + +jobs: + test-pip: + runs-on: ubuntu-latest + strategy: + matrix: + platform: [linux/amd64] + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: 3.11 + + - name: Clone sdk-python repository + run: | + git clone https://github.com/InjectiveLabs/sdk-python + cd sdk-python + + - name: Install injective-py from local copy + run: | + pip install . + + - name: Run Python script + run: | + python3 examples/chain_client/tendermint/query/3_GetLatestBlock.py