-
Notifications
You must be signed in to change notification settings - Fork 592
113 lines (96 loc) · 2.86 KB
/
Copy pathfunctionality.yaml
File metadata and controls
113 lines (96 loc) · 2.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
on:
push:
branches:
- master
pull_request:
schedule:
- cron: '0 18 * * *' # Daily 1800 UTC
workflow_dispatch:
name: functionality
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
ETHERSCAN_TOKEN: 9MKURTHE8FNA9NRUUJBHMUEVY6IQ5K1EGY
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WEB3_INFURA_PROJECT_ID: 44c6300c5e5b4b2da5fc42b06bf18a8e
jobs:
build-wheel:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Build wheel with mypycify
id: wheel
uses: BobTheBuidler/mypycify@v0.2.6
with:
python-version: "3.10"
hash-key: |
brownie/**/*.py
pyproject.toml
setup.py
requirements.txt
ccache: true
pip-cache-dependency-path: |
pyproject.toml
setup.py
requirements.txt
requirements-dev.txt
requirements-windows.txt
functionality:
needs: build-wheel
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
job: [plugintest, pmtest]
steps:
- uses: actions/checkout@v6
- name: Cache Solidity Installations
uses: actions/cache@v5
with:
path: |
~/.solcx
~/.vvm
key: func-${{ runner.os }}-compiler-cache
- name: Setup Node.js
uses: actions/setup-node@v4
- name: Install Ganache
run: npm install -g ganache@7.9.2
- name: Set up Python 3.10
uses: actions/setup-python@v6
with:
python-version: "3.10"
cache: pip
cache-dependency-path: |
pyproject.toml
setup.py
requirements.in
requirements.txt
requirements-windows.in
requirements-windows.txt
requirements-dev.in
requirements-dev.txt
- name: Cache .mypy_cache
uses: actions/cache@v5
with:
path: .mypy_cache
key: mypy-cache-${{ runner.os }}-${{ hashFiles('**/*.py', 'pyproject.toml') }}
- name: Install Tox
run: pip install tox
- name: Cache tox environment
uses: actions/cache@v5
with:
path: .tox
key: toxenv-${{ runner.os }}-${{ matrix.job }}-3.10-${{ matrix.architecture }}-${{ hashFiles('pyproject.toml', 'setup.py', 'requirements.in', 'requirements.txt', 'requirements-windows.in', 'requirements-windows.txt', 'requirements-dev.in', 'requirements-dev.txt', 'tox.ini') }}
# Download the wheel artifact built by mypycify
- name: Download wheel
uses: actions/download-artifact@v8
with:
path: .
name: ${{ steps.wheel.outputs.artifact-name }}
- name: Run Tox
run: tox -e ${{ matrix.job }} --installpkg=$(find . -name '*.whl')
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml