-
Notifications
You must be signed in to change notification settings - Fork 6
44 lines (37 loc) · 1.45 KB
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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 }}