-
Notifications
You must be signed in to change notification settings - Fork 10
43 lines (35 loc) · 1008 Bytes
/
tests.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
name: unit-tests-boa
on: [push]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RPC_ETHEREUM: ${{ secrets.RPC_ETHEREUM }}
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
folder:
- "tests/unitary"
- "tests/stateful"
- "tests/fuzzing"
# - "tests/integration"
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
version: "0.4.18"
enable-cache: true # Enables built-in caching for uv
- name: Cache Compiler Installations
uses: actions/cache@v3
with:
path: |
~/.vvm
key: compiler-cache-${{ hashFiles('**/uv.lock') }}
- name: Set up Python 3.12.6
run: uv python install 3.12.6
- name: Install Requirements
run: uv sync --extra=dev
- name: Run tests in ${{ matrix.folder }}
run: uv run pytest ${{ matrix.folder }} -n auto