Added cli validators test in pytest and CI for localnet dependent tests. #233
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
name: Install mxpy using pipx (Ubuntu) | |
on: | |
pull_request: | |
branches: [main, feat/*] | |
workflow_dispatch: | |
env: | |
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | |
jobs: | |
install: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.11] | |
steps: | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install pipx | |
run: | | |
sudo apt update | |
sudo apt install pipx | |
pipx ensurepath | |
- name: Install mxpy | |
run: | | |
pipx install git+https://github.com/multiversx/mx-sdk-py-cli@$BRANCH_NAME | |
- name: Smoke test | |
run: | | |
mxpy --version |