update: s3 monitoring to be more accurate #590
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: Test Full Suite | |
on: | |
pull_request: | |
branch: master | |
paths: | |
- '**.py' | |
- '**/pytest.yaml' | |
- '**/tests._fullsuite.yaml' | |
- '**/requirements.txt' | |
jobs: | |
test_full_suite: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, macos-latest, windows-latest ] | |
network: [ mainnet, ftm-main ] | |
include: | |
- os: ubuntu-latest | |
path: ~/.cache/pip | |
- os: macos-latest | |
path: ~/Library/Caches/pip | |
- os: windows-latest | |
path: ~\AppData\Local\pip\Cache | |
# Providers for all chains. | |
- network: mainnet | |
provider: WEB3_PROVIDER | |
- network: ftm-main | |
provider: FTM_WEB3_PROVIDER | |
fail-fast: false | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v2 | |
- name: Setup Python (faster than using Python container) | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.9" | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
path: ${{ matrix.path }} | |
- name: Cache joblib middleware cache | |
uses: actions/cache@v3 | |
with: | |
# Include requirements.txt so we recache if web3 version changes (via brownie) | |
key: full-test-suite-${{ runner.os }}-${{ matrix.network }}-${{ hashFiles('**/middleware.py') }}-${{ hashFiles('**/requirements.txt') }} | |
path: ./cache/*/joblib/web3/middleware/filter/middleware | |
- name: Cache compilers and brownie deployments | |
uses: actions/cache@v3 | |
with: | |
key: full-test-suite-${{ runner.os }}-brownie-cache-${{ matrix.network }} | |
path: | | |
~/.brownie/deployments.db | |
~/.solcx | |
~/.vvm | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Setup brownie networks | |
run: brownie networks modify ${{ matrix.network }} host=${{ secrets[matrix.provider] }} | |
# continue-on-error is needed because this step will raise an exception on Windows, but will still correctly set the host. | |
continue-on-error: true | |
- name: Test Full Suite | |
env: | |
PYTEST_NETWORK: ${{ matrix.network }} | |
# Explorer tokens for all chains: | |
ETHERSCAN_TOKEN: ${{ secrets.ETHERSCAN_TOKEN }} | |
FTMSCAN_TOKEN: ${{ secrets.FTMSCAN_TOKEN }} | |
run: pytest -W ignore |