Skip to content

Commit

Permalink
chore: bump workflows to 3.10 -> 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdefinitelyahuman committed Feb 1, 2024
1 parent d27dcb3 commit ab35a2b
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 35 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/core-ganache-3.10.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Core Ganache (py10)
name: Core Ganache (py3.10)
on: ["push", "pull_request"]

env:
Expand All @@ -7,7 +7,7 @@ env:
WEB3_INFURA_PROJECT_ID: ddddf0c53f254d36aa76ce4e3a6a390e

jobs:
py37core:
py310core:
runs-on: ubuntu-latest

steps:
Expand All @@ -22,10 +22,10 @@ jobs:
key: ${{ runner.os }}-compiler-cache

- name: Setup Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v4

- name: Install Ganache
run: npm install -g ganache@7.0.2
run: npm install -g ganache@7.9.2

- name: Setup Python 3.10
uses: actions/setup-python@v5
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/core-ganache-3.8.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Core Ganache (py38)
name: Core Ganache (py3.12)
on: ["push", "pull_request"]

env:
Expand All @@ -7,11 +7,11 @@ env:
WEB3_INFURA_PROJECT_ID: 21317ddb5ded42ce8d40c7d78f90474f

jobs:
py38core:
py312core:
runs-on: ubuntu-latest

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

- name: Cache Solidity Installations
uses: actions/cache@v2
Expand All @@ -22,21 +22,21 @@ jobs:
key: ${{ runner.os }}-compiler-cache

- name: Setup Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v4

- name: Install Ganache
run: npm install -g ganache@7.0.2
run: npm install -g ganache@7.9.2

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

- name: Install Tox
run: pip install tox

- name: Run Tox
run: tox -e py38
run: tox -e py312

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
Expand Down
25 changes: 10 additions & 15 deletions .github/workflows/core-ganache-3.9.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Core Ganache (py39)
name: Core Ganache (py3.11)
on: ["push", "pull_request"]

env:
Expand All @@ -7,16 +7,11 @@ env:
WEB3_INFURA_PROJECT_ID: 1668fecbc9c242d58253476103a42ce9

jobs:
py39core:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
py311core:
runs-on: ubuntu-latest

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

- name: Cache Solidity Installations
uses: actions/cache@v2
Expand All @@ -27,21 +22,21 @@ jobs:
key: ${{ runner.os }}-compiler-cache

- name: Setup Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v4

- name: Install Ganache
run: npm install -g ganache@7.0.2
run: npm install -g ganache@7.9.2

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

- name: Install Tox
run: pip install tox

- name: Run Tox
run: tox -e py39
run: tox -e py311

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
Expand Down
14 changes: 7 additions & 7 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{38,39,310}
py{310,311,312}
{pm,evm,plugin}test
evm-{byzantium,petersburg,istanbul,latest}

Expand All @@ -12,16 +12,16 @@ passenv =
GITHUB_TOKEN
WEB3_INFURA_PROJECT_ID
deps =
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
py{310,311,312},{pm,plugin}test,evm-{byzantium,petersburg,istanbul,latest}: coverage==5.2.1
py{310,311,312},{pm,plugin}test,evm-{byzantium,petersburg,istanbul,latest}: pytest==6.0.1
py{310,311,312},{pm,plugin}test,evm-{byzantium,petersburg,istanbul,latest}: pytest-cov==2.10.1
py{310,311,312},{pm,plugin}test,evm-{byzantium,petersburg,istanbul,latest}: pytest-mock==3.3.1
py{310,311,312},{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{38,39,310}: python -m pytest tests/ {posargs}
py{310,311,312}: 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 Down

0 comments on commit ab35a2b

Please sign in to comment.