Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Bump semver from 5.7.1 to 5.7.2 in /docs #751

Bump semver from 5.7.1 to 5.7.2 in /docs

Bump semver from 5.7.1 to 5.7.2 in /docs #751

name: Behaviour tests
on:
push:
branches:
- main
- develop
- cairo-1.0
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CAIRO_LANG_VERSION: 0.11.0.2
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '16.x'
cache: 'yarn'
- name: Setup Python
uses: actions/setup-python@v2.2.2
with:
python-version: 3.9 # Cairo was tested with this version
- name: Install dependencies
run: |
yarn
pipx install black[colors]
pip install cairo-lang=="$CAIRO_LANG_VERSION"
- name: Build warplib
run: yarn warplib
- name: Check formatting
run: |
yarn lint
black starknet-testnet/ --check --verbose --diff --color
# find warplib/ -iname *.cairo -exec cairo-format -c {} +
compilation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '16.x'
cache: 'yarn'
- name: Setup Python
uses: actions/setup-python@v2.2.2
with:
python-version: 3.9 # Cairo was tested with this version
- name: Install dependencies
run: |
make
make compile
- name: Setup warp_venv
run: bin/warp install --python python --verbose
- name: Build warplib
run: yarn warplib
- name: Test warplib
run: yarn test:lib
- name: Running compilation tests
run: make test_compilation
test-behaviour:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '16.x'
cache: 'yarn'
- name: Setup Python
uses: actions/setup-python@v2.2.2
with:
python-version: 3.9 # Cairo was tested with this version
- name: Install dependencies
run: |
make
make compile
- name: Setup warp_venv
run: bin/warp install --python python --verbose
- name: Build warplib
run: yarn warplib
- name: Test code execution
run: |
starknet-devnet &
yarn test:behaviour
env:
STARKNET_NETWORK: alpha-goerli
STARKNET_WALLET: starkware.starknet.wallets.open_zeppelin.OpenZeppelinAccount
STARKNET_ACCOUNT_DIR: $PWD/.starknet_accounts_devnet