-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(feat) Add workflow to test local pip installation
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 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
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 |