update more tests for v0.4.0 #767
Workflow file for this run
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: unitary | |
on: ["push", "pull_request"] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
unitary: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11"] | |
name: "unit tests: python ${{ matrix.python-version }}" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "pip" | |
- name: Install Requirements | |
run: | | |
pip install -r dev-requirements.txt | |
pip install . | |
- name: Run Unit Tests | |
run: pytest -n auto tests/unitary/ | |
integration: | |
name: "integration tests (forked and networked modes)" | |
runs-on: ubuntu-latest | |
# only run in single process, so there is no contention for sepolia tx nonce | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python 3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
cache: "pip" | |
- name: Install Requirements | |
run: | | |
pip install -r dev-requirements.txt | |
pip install . | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: Run Fork Mode Tests | |
run: pytest -n auto tests/integration/fork/ | |
env: | |
MAINNET_ENDPOINT: ${{ secrets.ALCHEMY_MAINNET_ENDPOINT }} | |
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }} | |
- name: Run Networked Tests against anvil | |
# run separately to clarify its dependency on outside binary | |
run: pytest -n auto tests/integration/network/anvil/ | |
- name: Run Sepolia Tests | |
# disable xdist, otherwise they can contend for tx nonce | |
run: pytest -n 0 tests/integration/network/sepolia/ | |
env: | |
SEPOLIA_ENDPOINT: ${{ secrets.ALCHEMY_SEPOLIA_ENDPOINT }} | |
SEPOLIA_PKEY: ${{ secrets.SEPOLIA_PKEY }} |