Skip to content

Commit

Permalink
(feat) Add workflow to test local pip installation
Browse files Browse the repository at this point in the history
  • Loading branch information
shibaeff committed Oct 2, 2024
1 parent 45efb35 commit d5160e3
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/test-pip.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d5160e3

Please sign in to comment.