Skip to content

feat: update Kakarot send tx API #990

feat: update Kakarot send tx API

feat: update Kakarot send tx API #990

Workflow file for this run

name: test
on: [pull_request]
jobs:
check:
name: check
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
override: true
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
with:
command: check
fmt:
name: fmt
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
override: true
components: rustfmt
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
clippy:
name: clippy
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
override: true
components: clippy
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --workspace --all-features --all-targets -- -D warnings
test:
name: test
runs-on: ubuntu-latest-16-cores
timeout-minutes: 30
steps:
# foundry
- name: install foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
# rust setup
- uses: actions/checkout@v2
- name: Setup rust env
uses: actions-rs/toolchain@v1
with:
profile: minimal
components: llvm-tools-preview
override: true
- name: Retrieve cached dependencies
uses: Swatinem/rust-cache@v2
- name: Setup coverage env
uses: taiki-e/install-action@cargo-llvm-cov
# nextest setup
- uses: taiki-e/install-action@cargo-llvm-cov
- uses: taiki-e/install-action@nextest
# Python setup
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Load cached Poetry installation
id: cached-poetry
uses: actions/cache@v3
with:
path: ~/.local
key: poetry-${{ runner.os }}
- name: Install Poetry
if: steps.cached-poetry.outputs.cache-hit != 'true'
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: pull kakarot submodule and setup
run: make setup
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- run: cd lib/kakarot && poetry config installer.modern-installation false
- name: Generate code coverage
run: ./scripts/make_with_env.sh test-coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: lcov.info
fail_ci_if_error: false