Localnet: add support for Supernova #944
This file contains hidden or 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
| # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
| # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
| name: build | |
| on: | |
| pull_request: | |
| branches: [main, feat/*] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Build and Test mxpy for ${{ matrix.os }}, python ${{ matrix.python-version }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| python-version: [3.11] | |
| max-parallel: 1 # This ensures jobs run sequentially, not concurrently | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python3 -m pip install --upgrade pip | |
| pip3 install -r requirements.txt | |
| pip3 install -r requirements-dev.txt | |
| - name: Set github_api_token | |
| run: | | |
| mkdir ~/multiversx-sdk | |
| export PYTHONPATH=. | |
| python3 -m multiversx_sdk_cli.cli config new test | |
| python3 -m multiversx_sdk_cli.cli config set github_api_token ${{ secrets.GITHUB_TOKEN }} | |
| - name: Install Rust | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| toolchain: stable | |
| target: wasm32-unknown-unknown | |
| - name: Setup test dependencies | |
| run: | | |
| python3 -m multiversx_sdk_cli.cli deps install testwallets | |
| - name: Run unit tests | |
| run: | | |
| export PYTHONPATH=. | |
| pytest . |