File tree Expand file tree Collapse file tree 4 files changed +6
-30
lines changed Expand file tree Collapse file tree 4 files changed +6
-30
lines changed Original file line number Diff line number Diff line change 21
21
with :
22
22
node-version : ' 16.x'
23
23
24
- - name : Install dependencies
25
- run : npm ci
26
-
27
- - name : Build app.js
28
- run : npm run build:ci
29
-
30
24
- name : Build and Check Package
31
25
uses : hynek/build-and-inspect-python-package@v1
32
26
Original file line number Diff line number Diff line change 6
6
- master
7
7
8
8
schedule :
9
- - cron : ' 1 0 * * *' # Run daily at 0:01 UTC
9
+ - cron : ' 0 14 * * *' # Run daily at 14:00 UTC
10
10
11
11
pull_request :
12
12
46
46
with :
47
47
node-version : ' 16.x'
48
48
49
- - name : Install dependencies
50
- run : npm ci
51
-
52
- - name : Build app.js
53
- run : npm run build:ci
54
-
55
49
- name : Build and Check Package
56
50
uses : hynek/build-and-inspect-python-package@v1
57
51
@@ -129,12 +123,6 @@ jobs:
129
123
with :
130
124
node-version : ' 16.x'
131
125
132
- - name : Install dependencies
133
- run : npm ci
134
-
135
- - name : Build app
136
- run : npm run build:ci
137
-
138
126
- name : Set up python
139
127
uses : actions/setup-python@v4
140
128
with :
@@ -203,12 +191,6 @@ jobs:
203
191
with :
204
192
node-version : ' 16.x'
205
193
206
- - name : Install dependencies
207
- run : npm ci
208
-
209
- - name : Build app
210
- run : npm run build:ci
211
-
212
194
- name : Set up python
213
195
uses : actions/setup-python@v4
214
196
with :
Original file line number Diff line number Diff line change 1
1
{
2
2
"scripts" : {
3
- "unit" : " nyc mocha testing/**/unittest.js" ,
4
- "build:ci" : " npm run build:css && npm run build:jsapp" ,
3
+ "build" : " npm run build:css && npm run build:jsapp" ,
5
4
"build:css" : " sass --no-source-map --no-error-css src/layout/css/style.scss src/pytest_html/resources/style.css" ,
6
5
"build:jsapp" : " browserify ./src/pytest_html/scripts/index.js > ./src/pytest_html/resources/app.js" ,
7
- "build" : " npm run unit && npm run build:css && npm run build:jsapp" ,
8
- "lint" : " eslint src/pytest_html/scripts/ testing/"
6
+ "lint" : " eslint src/pytest_html/scripts/ testing/" ,
7
+ "unit" : " nyc mocha testing/**/unittest.js" ,
8
+ "all" : " npm run lint && npm run unit && npm run build:css && npm run build:jsapp"
9
9
},
10
10
"devDependencies" : {
11
11
"browserify" : " ^17.0.0" ,
Original file line number Diff line number Diff line change 5
5
6
6
class NpmBuildHook (BuildHookInterface ):
7
7
def initialize (self , version , build_data ):
8
- subprocess .check_output ("npm install " , shell = True )
8
+ subprocess .check_output ("npm ci " , shell = True )
9
9
subprocess .check_output ("npm run build" , shell = True )
You can’t perform that action at this time.
0 commit comments