Skip to content

Download dependencies #4

Download dependencies

Download dependencies #4

Workflow file for this run

name: unitary
on:
pull_request:
push: # all
jobs:
unitary:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.12" ]
name: "unit tests: python ${{ matrix.python-version }}"
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install Requirements
run: |
pip install -r dev-requirements.txt
pip install .
# Install zkvyper and era_test_node from binary repositories
curl https://github.com/matter-labs/zkvyper-bin/raw/66cc159d9b6/linux-amd64/zkvyper-linux-amd64-musl-v1.4.0 \
-o ~/.local/bin/zkvyper && chmod +x ~/.local/bin/zkvyper
curl https://github.com/matter-labs/era-test-node/releases/download/v0.1.0-alpha.19/era_test_node-v0.1.0-alpha.19-x86_64-unknown-linux-gnu.tar.gz \
-o era_test_node.tar.gz && tar -xvf era_test_node.tar.gz && mv era_test_node ~/.local/bin/era_test_node
- name: Run Unit Tests
env:
PYTHONPATH: ${{ github.workspace }}
# pass internals to pytest-cov, since we are testing a pytest plugin.
# See https://github.com/pytest-dev/pytest-cov/blob/2c9f2170/docs/plugins.rst
COV_CORE_SOURCE: boa_zksync
COV_CORE_CONFIG: .coveragerc
COV_CORE_DATAFILE: .coverage.eager
run: >-
pytest
--cov=boa_zksync
--cov-append
--cov-report term-missing:skip-covered
--cov-fail-under=70
-nauto
tests