Skip to content
This repository was archived by the owner on Jan 10, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Setup node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'
node-version: '16.x'

- name: Set yarn cache directory path
id: yarn-cache-dir-path
Expand Down Expand Up @@ -68,10 +68,10 @@ jobs:
with:
fetch-depth: 1

- name: Set up python 3.8
- name: Set up python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9

- name: Set pip cache directory path
id: pip-cache-dir-path
Expand Down
52 changes: 10 additions & 42 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@ concurrency:
cancel-in-progress: true

jobs:

functional:
runs-on: ubuntu-latest
strategy:
matrix:
group: [1, 2, 3, 4, 5, 6]

group: ["base_fee_oracle", "registry", "strategy", "vault"]
steps:
- uses: actions/checkout@v1

Expand All @@ -33,15 +31,15 @@ jobs:
- name: Setup node.js
uses: actions/setup-node@v1
with:
node-version: '14.x'
node-version: '16.x'

- name: Install ganache
run: npm install -g ganache

- name: Set up python 3.8
- name: Set up python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9

- name: Set pip cache directory path
id: pip-cache-dir-path
Expand All @@ -59,45 +57,15 @@ jobs:
${{ runner.os }}-pip-${{ hashFiles('**/requirements-dev.txt') }}
${{ runner.os }}-pip-

- name: Get Month
id: get-month
run: echo "::set-output name=date::$(/bin/date -u "+%Y%m")"
shell: bash

- name: Restore duration cache
uses: actions/cache@v2
id: test_durations_cache
with:
path: .test_durations
key: ${{ runner.os }}-${{ steps.get-month.outputs.date }}-test-durations-cache-

- name: Check file existence
id: check_test_durations
uses: andstor/file-existence-action@v1
with:
files: .test_durations

- name: cat
if: steps.check_test_durations.outputs.files_exists == 'true'
run: cat .test_durations

- name: Install python dependencies
run: pip install -r requirements-dev.txt

- name: Install pytest-split
run: pip install pytest-split

- name: Compile Code
run: brownie compile --size

- name: Run Splitted Tests
if: steps.check_test_durations.outputs.files_exists == 'true'
run: brownie test tests/functional --gas --coverage --splits 6 --group ${{ matrix.group }};

- name: Run build test_duration
if: steps.check_test_durations.outputs.files_exists == 'false' # has to run on all, otherwise the first one that finishes creates an empty cache and lock the cache for others
id: build_cache_duration
run: brownie test tests/functional --store-durations --gas --coverage
- name: Run test functional
id: test_functional
run: brownie test tests/functional/${{ matrix.group }}

integration:
runs-on: ubuntu-latest
Expand All @@ -116,15 +84,15 @@ jobs:
- name: Setup node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'
node-version: '16.x'

- name: Install ganache
run: npm install -g ganache-cli@6.12.1

- name: Set up python 3.8
- name: Set up python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9

- name: Set pip cache directory path
id: pip-cache-dir-path
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/title.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9

- name: Install Dependencies
run: pip install commitizen
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on Ethereum.

To run the project you need:

- Python 3.8 local development environment and Node.js 10.x development environment for Ganache.
- Python 3.9 local development environment and Node.js 10.x development environment for Ganache.
- Brownie local environment setup. See instructions for how to install it
[here](https://eth-brownie.readthedocs.io/en/stable/install.html).
- Local env variables for [Etherscan API](https://etherscan.io/apis) and
Expand Down Expand Up @@ -57,13 +57,13 @@ Any command `in code blocks` is meant to be executed from a Mac/Linux terminal o
- If you're using the WSL
- Wait to install Solidity & Vyper, you'll do this in a later step
- Install [Remote - WSL](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-wsl)
3. Install [Python 3.8](https://www.python.org/downloads/release/python-380/)
3. Install [Python 3.9](https://www.python.org/downloads/release/python-390/)
- Linux: Refer to your distro documentation
- [Mac installer](https://www.python.org/ftp/python/3.8.0/python-3.8.0-macosx10.9.pkg)
- [Windows installer](https://www.python.org/ftp/python/3.8.0/python-3.8.0-amd64.exe)
- [Mac installer](https://www.python.org/ftp/python/3.9.0/python-3.9.0-macosx10.9.pkg)
- [Windows installer](https://www.python.org/ftp/python/3.9.0/python-3.9.0-amd64.exe)
4. [Setup Brownie](https://github.com/eth-brownie/brownie)
- `python3 -m pip install --user pipx`
- Note, if get you an error to the effect of python3 not being installed or recognized, run `python --version`, if it returns back something like `Python 3.8.x` then just replace `python3` with `python` for all python commands in these instructions
- Note, if get you an error to the effect of python3 not being installed or recognized, run `python --version`, if it returns back something like `Python 3.9.x` then just replace `python3` with `python` for all python commands in these instructions
- `python3 -m pipx ensurepath`
- `pipx install eth-brownie`
- If you're on Windows (pure Windows, not WSL), you'll need to install the [C++ Build Tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/) before executing this
Expand Down
4 changes: 2 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
black==22.6.0
eth-brownie>=1.19.1,<2.0.0
black==22.10.0
eth-brownie>=1.19.3,<2.0.0