Skip to content

Commit 9d4809b

Browse files
committed
Fixing python package issues
1 parent b426bb7 commit 9d4809b

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

bitbucket-pipelines.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ definitions:
66
steps:
77
- step: &z-run-any-anchor
88
name: Run R or Stata code
9-
image: python:3.12
109
# commented out to speed up processing. Uncomment for debugging
1110
#artifacts:
1211
# - 1**/**
@@ -274,7 +273,10 @@ pipelines:
274273
- step:
275274
name: Combine Part A and B of the report
276275
image: python:3.12
276+
caches:
277+
- pip
277278
script:
279+
- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
278280
- chmod a+rx automations/*.sh
279281
- ./automations/50_merge-parts.sh
280282
- git push
@@ -288,7 +290,10 @@ pipelines:
288290
- step:
289291
name: Split REPLICATION.md into Part A and B of the report
290292
image: python:3.12
293+
caches:
294+
- pip
291295
script:
296+
- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
292297
- chmod a+rx automations/*.sh
293298
- ./automations/51_split-parts.sh
294299
- git push
@@ -300,7 +305,10 @@ pipelines:
300305
- step:
301306
name: Refresh the tools in this repository
302307
image: python:3.12
308+
caches:
309+
- pip
303310
script:
311+
- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
304312
- wget https://raw.githubusercontent.com/AEADataEditor/replication-template/master/tools/update_tools.sh
305313
- chmod a+rx update_tools.sh
306314
- ./update_tools.sh
@@ -314,7 +322,10 @@ pipelines:
314322
- step:
315323
name: Rename a deposit directory
316324
image: python:3.12
325+
caches:
326+
- pip
317327
script:
328+
- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
318329
- . ./tools/parse_yaml.sh
319330
- eval $(parse_yaml config.yml)
320331
- if [ -z $openICPSRID ]; then openICPSRID=$openicpsr; else echo "openICPSRID not set"; fi
@@ -345,9 +356,12 @@ pipelines:
345356
- step:
346357
name: Convert EPS and PDF to PNG
347358
image: python:3.12
359+
caches:
360+
- pip
348361
services:
349362
- docker
350363
script:
364+
- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
351365
- . ./tools/parse_yaml.sh
352366
- eval $(parse_yaml config.yml)
353367
- if [ -z $openICPSRID ]; then openICPSRID=$openicpsr; else echo "openICPSRID not set"; fi
@@ -417,6 +431,7 @@ pipelines:
417431
caches:
418432
- pip
419433
script:
434+
- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
420435
- . ./tools/parse_yaml.sh
421436
- eval $(parse_yaml config.yml)
422437
- if [ -z $openICPSRID ]; then openICPSRID=$openicpsr; else echo "openICPSRID not set"; fi

0 commit comments

Comments
 (0)