Skip to content

fix: add view mutability to non-state-mutating test functions #64

fix: add view mutability to non-state-mutating test functions

fix: add view mutability to non-state-mutating test functions #64

Workflow file for this run

name: CI
on:
push:
branches: [master, main]
pull_request:
jobs:
forge:
name: forge test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: foundry-rs/foundry-toolchain@v1
with:
version: stable
- name: Install OZ + forge-std
run: |
forge install foundry-rs/forge-std --shallow
# OZ v5.0.2 is not reachable via foundry's tag-API window (OZ is at v5.6.x).
# Pin by SHA; --shallow excluded because shallow clones can't checkout arbitrary commits.
forge install OpenZeppelin/openzeppelin-contracts@dbb6104ce834628e473d2173bbc9d47f81a9eec3
- run: forge build --sizes
- run: forge test -vv
pytest:
name: pytest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install package + test deps
run: |
python -m pip install --upgrade pip
python -m pip install -e '.[dev,flask,fastapi]'
- name: Collect tests (must succeed)
run: pytest tests/ --collect-only -q
- name: Run tests
run: pytest tests/ -v