Skip to content

Commit

Permalink
chore: drop 3.7 support, test against 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdefinitelyahuman committed Feb 1, 2024
1 parent 11b7061 commit d14b9aa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Core Ganache (py37)
name: Core Ganache (py10)
on: ["push", "pull_request"]

env:
Expand All @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Cache Solidity Installations
uses: actions/cache@v2
Expand All @@ -27,16 +27,16 @@ jobs:
- name: Install Ganache
run: npm install -g ganache@7.0.2

- name: Setup Python 3.7
uses: actions/setup-python@v2
- name: Setup Python 3.10
uses: actions/setup-python@v5
with:
python-version: 3.7
python-version: "3.10"

- name: Install Tox
run: pip install tox

- name: Run Tox
run: tox -e py37
run: tox -e py310

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
Expand Down
16 changes: 7 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
envlist =
lint
docs-{local,external}
py{37,38,39}
py{38,39,310}
{pm,evm,plugin}test
evm-{byzantium,petersburg,istanbul,latest}

Expand All @@ -12,16 +12,16 @@ passenv =
GITHUB_TOKEN
WEB3_INFURA_PROJECT_ID
deps =
py{37,38,39},{pm,plugin}test,evm-{byzantium,petersburg,istanbul,latest}: coverage==5.2.1
py{37,38,39},{pm,plugin}test,evm-{byzantium,petersburg,istanbul,latest}: pytest==6.0.1
py{37,38,39},{pm,plugin}test,evm-{byzantium,petersburg,istanbul,latest}: pytest-cov==2.10.1
py{37,38,39},{pm,plugin}test,evm-{byzantium,petersburg,istanbul,latest}: pytest-mock==3.3.1
py{37,38,39},{pm,plugin}test,evm-{byzantium,petersburg,istanbul,latest}: pytest-xdist==1.34.0
py{38,39,310},{pm,plugin}test,evm-{byzantium,petersburg,istanbul,latest}: coverage==5.2.1
py{38,39,310},{pm,plugin}test,evm-{byzantium,petersburg,istanbul,latest}: pytest==6.0.1
py{38,39,310},{pm,plugin}test,evm-{byzantium,petersburg,istanbul,latest}: pytest-cov==2.10.1
py{38,39,310},{pm,plugin}test,evm-{byzantium,petersburg,istanbul,latest}: pytest-mock==3.3.1
py{38,39,310},{pm,plugin}test,evm-{byzantium,petersburg,istanbul,latest}: pytest-xdist==1.34.0
docs-{local,external}: sphinx
docs-{local,external}: sphinx_rtd_theme
docs-{local,external}: pygments_lexer_solidity
commands =
py{37,38,39}: python -m pytest tests/ {posargs}
py{38,39,310}: python -m pytest tests/ {posargs}
evm-byzantium: python -m pytest tests/ --evm 0.4.22,0.4.26,0.5.0,0.5.17,0.6.3,0.6.9 byzantium 0,10000
evm-petersburg: python -m pytest tests/ --evm 0.5.5,0.5.17,0.6.3,0.6.9 petersburg 0,10000
evm-istanbul: python -m pytest tests/ --evm 0.5.13,0.5.17,0.6.3,0.6.9 istanbul 0,10000
Expand All @@ -43,5 +43,3 @@ commands =
black --check {toxinidir}/brownie {toxinidir}/tests
flake8 {toxinidir}/brownie {toxinidir}/tests
isort --check-only --diff {toxinidir}/brownie {toxinidir}/tests --skip brownie/__init__.py
mypy --disallow-untyped-defs {toxinidir}/brownie/convert {toxinidir}/brownie/network {toxinidir}/brownie/project
mypy --allow-untyped-defs {toxinidir}/brownie

0 comments on commit d14b9aa

Please sign in to comment.