Merge pull request #40 from vyperlang/fix/anvil-zksync #119
This file contains 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
name: test | |
on: | |
push: | |
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 . | |
echo "Installing zkvyper and anvil-zksync" | |
# Install zkvyper and anvil-zksync from binary repositories | |
curl --location https://raw.githubusercontent.com/matter-labs/zkvyper-bin/v1.5.7/linux-amd64/zkvyper-linux-amd64-musl-v1.5.7 \ | |
--silent --output /usr/local/bin/zkvyper && \ | |
chmod +x /usr/local/bin/zkvyper && \ | |
zkvyper --version | |
curl --location https://github.com/matter-labs/anvil-zksync/releases/download/v0.1.0-alpha.35/era_test_node-v0.1.0-alpha.35-x86_64-unknown-linux-gnu.tar.gz \ | |
--silent --output era_test_node.tar.gz && \ | |
tar --extract --file=era_test_node.tar.gz && \ | |
mv era_test_node /usr/local/bin/anvil-zksync && \ | |
anvil-zksync --version && \ | |
rm era_test_node.tar.gz | |
- run: make coverage lint | |
env: | |
SEPOLIA_PKEY: ${{ secrets.SEPOLIA_PKEY }} |