@@ -41,20 +41,25 @@ jobs:
41
41
steps :
42
42
- name : ' Checkout the repo'
43
43
uses : ' actions/checkout@v4'
44
+
44
45
- name : ' Install UV'
45
46
uses : ' astral-sh/setup-uv@v5'
46
47
with :
47
48
version : ' 0.5.26'
49
+
48
50
- name : ' Setup Python'
49
51
uses : ' actions/setup-python@v5'
50
52
with :
51
53
python-version-file : ' ./cow-trader/pyproject.toml'
54
+
52
55
- name : ' Install dependencies'
53
56
run : ' uv sync --all-extras --dev'
54
- - name : ' Lint'
55
- run : |
56
- ruff check .
57
- ruff format --check .
57
+
58
+ - name : ' Lint with Ruff'
59
+ uses : astral-sh/ruff-action@v3
60
+ run : ruff check --fix
61
+ run : ruff format
62
+
58
63
- name : ' Add lint summary'
59
64
run : |
60
65
echo "## Lint result" >> $GITHUB_STEP_SUMMARY
@@ -69,26 +74,33 @@ jobs:
69
74
steps :
70
75
- name : ' Checkout the repo'
71
76
uses : ' actions/checkout@v4'
77
+
72
78
- name : ' Install UV'
73
79
uses : ' astral-sh/setup-uv@v5'
74
80
with :
75
81
version : ' 0.5.26'
82
+
76
83
- name : ' Setup Python'
77
84
uses : ' actions/setup-python@v5'
78
85
with :
79
86
python-version-file : ' ./cow-trader/pyproject.toml'
87
+
80
88
- name : ' Install dependencies'
81
89
run : ' uv sync --all-extras --dev'
90
+
82
91
- name : ' Install Ape'
83
92
uses : ' ApeWorX/github-action@v3'
84
93
with :
85
94
python-version : ' 3.11'
86
95
ape-version-pin : ' 0.8.25'
87
96
ape-plugins-list : ' solidity==0.8.5 alchemy==0.8.7 etherscan==0.8.4 foundry==0.8.7'
97
+
88
98
- name : ' Install contract dependencies'
89
99
run : ' ape pm install gh:Vectorized/solady --name solady --ref v0.1.3'
100
+
90
101
- name : ' Compile contracts'
91
102
run : ' ape compile --force'
103
+
92
104
- name : ' Add build summary'
93
105
run : |
94
106
echo "## Build result" >> $GITHUB_STEP_SUMMARY
@@ -104,26 +116,33 @@ jobs:
104
116
steps :
105
117
- name : ' Checkout the repo'
106
118
uses : ' actions/checkout@v4'
119
+
107
120
- name : ' Install UV'
108
121
uses : ' astral-sh/setup-uv@v5'
109
122
with :
110
123
version : ' 0.5.26'
124
+
111
125
- name : ' Setup Python'
112
126
uses : ' actions/setup-python@v5'
113
127
with :
114
128
python-version-file : ' ./cow-trader/pyproject.toml'
129
+
115
130
- name : ' Install dependencies'
116
131
run : ' uv sync --all-extras --dev'
132
+
117
133
- name : ' Install Ape'
118
134
uses : ' ApeWorX/github-action@v3'
119
135
with :
120
136
python-version : ' 3.11'
121
137
ape-version-pin : ' 0.8.25'
122
138
ape-plugins-list : ' solidity==0.8.5 alchemy==0.8.7 etherscan==0.8.4 foundry==0.8.7'
139
+
123
140
- name : ' Install contract dependencies'
124
141
run : ' ape pm install gh:Vectorized/solady --name solady --ref v0.1.3'
142
+
125
143
- name : ' Run tests'
126
144
run : ' ape test -s'
145
+
127
146
- name : ' Add test summary'
128
147
run : |
129
148
echo "## Tests result" >> $GITHUB_STEP_SUMMARY
0 commit comments