Skip to content

feat: add CI workflows for contract testing #2

feat: add CI workflows for contract testing

feat: add CI workflows for contract testing #2

Workflow file for this run

name: 02 - Tests Contract PY
on: push
jobs:
workflows:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Install uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Install Emscripten
run: |
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install latest
./emsdk activate latest
source ./emsdk_env.sh
echo "PATH=$PATH" >> $GITHUB_ENV
- name: Build and test contract
run: |
cd ./contract-py/02-winner-gets-nft
uv venv
uv sync
uvx nearc contract.py
uv run pytest