4
4
push :
5
5
branches :
6
6
- main
7
+ pull_request :
8
+ branches :
9
+ - ' *'
10
+ workflow_dispatch : # allows to trigger manually
7
11
schedule :
8
12
- cron : " 0 5 * * 4" # Once a week at 0500 on Thursday
9
13
@@ -31,13 +35,17 @@ jobs:
31
35
- name : Install dependencies
32
36
run : |
33
37
sudo apt update -y
34
- sudo apt install git zlib1g-dev build-essential pkg-config rsync -y
38
+ sudo apt install git zlib1g-dev build-essential pkg-config rsync lsof -y
35
39
36
40
- uses : actions/checkout@v4
37
41
with :
38
42
repository : deshaw/versioned-hdf5
39
43
path : ./versioned-hdf5/
40
- fetch-depth : 0 # Needed for asv to be able to run benchmarks on old commits
44
+ fetch-depth : 0 # Needed for asv to be able to run benchmarks on old commits
45
+
46
+ - name : Get commit hash
47
+ working-directory : ./versioned-hdf5
48
+ run : echo "PROJECT_SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV
41
49
42
50
- uses : actions/checkout@v4
43
51
with :
@@ -52,10 +60,18 @@ jobs:
52
60
- name : Install versioned-hdf5
53
61
working-directory : ./versioned-hdf5
54
62
run : |
55
- echo "PROJECT_SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV
56
63
conda install -n test pip hdf5 openmpi h5py ndindex -c conda-forge -y
57
64
conda run -n test pip install '.[bench]'
58
65
66
+ - name : Dump conda environment
67
+ run : conda list -n test
68
+
69
+ - name : Print hdf5 configuration
70
+ working-directory : ./versioned-hdf5-benchmarks
71
+ run : |
72
+ conda run -n test python -c 'import utils; utils.debug_libhdf5_so()'
73
+ conda run -n test h5cc -showconfig
74
+
59
75
- name : Run benchmarks
60
76
working-directory : ./versioned-hdf5
61
77
run : |
@@ -83,17 +99,18 @@ jobs:
83
99
84
100
- name : Generate html
85
101
working-directory : ./versioned-hdf5
86
- run : |
87
- conda run -n test asv publish -o ./html
102
+ run : conda run -n test asv publish -o ./html
88
103
89
104
- name : Setup Pages
90
105
uses : actions/configure-pages@v5
91
106
92
107
- name : Upload artifact
93
108
uses : actions/upload-pages-artifact@v3
94
109
with :
95
- path : ' ./versioned-hdf5/html'
110
+ path : ./versioned-hdf5/html
111
+ retention-days : 30
96
112
97
113
- name : Deploy to GitHub Pages
114
+ if : github.event_name != 'pull_request'
98
115
id : deployment
99
116
uses : actions/deploy-pages@v4
0 commit comments