Skip to content

Commit 969c362

Browse files
authored
fix versions and make CI robust (#31)
* fix versions and make CI robust * update versions * relax constraints * fix CI
1 parent 4493988 commit 969c362

File tree

10 files changed

+449
-309
lines changed

10 files changed

+449
-309
lines changed
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
name: Drishti (Darshan 3.4.2)
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
8+
cancel-in-progress: true
9+
10+
jobs:
11+
drishti:
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os: ["ubuntu-latest", "macos-latest"]
17+
python-version: ["3.8", "3.9", "3.10", "3.11"]
18+
19+
timeout-minutes: 20
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
with:
24+
submodules: true
25+
26+
- name: Set up Python ${{ matrix.python-version }}
27+
uses: actions/setup-python@v5
28+
with:
29+
python-version: ${{ matrix.python-version }}
30+
31+
- name: Upgrade pip, setuptools, and wheel
32+
if: matrix.python-version == '3.12'
33+
run: python -m pip install --upgrade pip setuptools wheel
34+
35+
- name: Dependencies
36+
run: |
37+
git clone https://github.com/darshan-hpc/darshan.git
38+
39+
- name: Install macOS Dependencies
40+
if: runner.os == 'macOS'
41+
run: |
42+
brew install libtool autoconf automake
43+
44+
- name: Build Darshan
45+
run: |
46+
cd darshan
47+
git checkout darshan-3.4.2
48+
bash prepare.sh
49+
cd darshan-util
50+
./configure
51+
make
52+
sudo make install
53+
54+
- name: Configure Linux
55+
if: runner.os == 'Linux'
56+
run: |
57+
sudo ldconfig
58+
59+
- name: Install Drishti
60+
run: |
61+
python -m ensurepip --upgrade
62+
pip install --upgrade setuptools
63+
pip install darshan==3.4.2
64+
pip install -r requirements.txt
65+
pip install .
66+
67+
- name: Run Drishti (--help)
68+
run: |
69+
drishti -h
70+
71+
- name: Run Drishti (--issues)
72+
run: |
73+
drishti --issues sample/jlbez_8a_benchmark_write_parallel_id1321662_8-21-5892-15802854900629188750_106.darshan
74+
75+
- name: Run Drishti (--code)
76+
run: |
77+
drishti --code sample/jlbez_8a_benchmark_write_parallel_id1321662_8-21-5892-15802854900629188750_106.darshan
78+
79+
- name: Run DXT Explorer (--verbose)
80+
run: |
81+
drishti --verbose sample/jlbez_8a_benchmark_write_parallel_id1321662_8-21-5892-15802854900629188750_106.darshan
82+
83+
- name: Run DXT Explorer (--path)
84+
run: |
85+
drishti --path sample/jlbez_8a_benchmark_write_parallel_id1321662_8-21-5892-15802854900629188750_106.darshan
86+
87+
- name: Run DXT Explorer (--html)
88+
run: |
89+
drishti --html sample/jlbez_8a_benchmark_write_parallel_id1321662_8-21-5892-15802854900629188750_106.darshan
90+
91+
- name: Run DXT Explorer (--svg)
92+
run: |
93+
drishti --svg sample/jlbez_8a_benchmark_write_parallel_id1321662_8-21-5892-15802854900629188750_106.darshan
94+
95+
- name: Setup upterm session
96+
if: ${{ failure() }}
97+
uses: owenthereal/action-upterm@v1
98+
99+
- name: Upload Artifact
100+
if: always()
101+
uses: actions/upload-artifact@v4
102+
with:
103+
name: tests-${{ matrix.os }}-${{ matrix.python-version }}
104+
path: sample/**
105+
retention-days: 1
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
name: Drishti (Darshan 3.4.4)
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
8+
cancel-in-progress: true
9+
10+
jobs:
11+
drishti:
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os: ["ubuntu-latest", "macos-latest"]
17+
python-version: ["3.8", "3.9", "3.10", "3.11"]
18+
19+
timeout-minutes: 20
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
with:
24+
submodules: true
25+
26+
- name: Set up Python ${{ matrix.python-version }}
27+
uses: actions/setup-python@v5
28+
with:
29+
python-version: ${{ matrix.python-version }}
30+
31+
- name: Upgrade pip, setuptools, and wheel
32+
if: matrix.python-version == '3.12'
33+
run: python -m pip install --upgrade pip setuptools wheel
34+
35+
- name: Dependencies
36+
run: |
37+
git clone https://github.com/darshan-hpc/darshan.git
38+
39+
- name: Install macOS Dependencies
40+
if: runner.os == 'macOS'
41+
run: |
42+
brew install libtool autoconf automake
43+
44+
- name: Build Darshan
45+
run: |
46+
cd darshan
47+
git checkout darshan-3.4.4
48+
bash prepare.sh
49+
cd darshan-util
50+
./configure
51+
make
52+
sudo make install
53+
54+
- name: Configure Linux
55+
if: runner.os == 'Linux'
56+
run: |
57+
sudo ldconfig
58+
59+
- name: Install Drishti
60+
run: |
61+
python -m ensurepip --upgrade
62+
pip install --upgrade setuptools
63+
pip install darshan==3.4.4
64+
pip install -r requirements.txt
65+
pip install .
66+
67+
- name: Run Drishti (--help)
68+
run: |
69+
drishti -h
70+
71+
- name: Run Drishti (--issues)
72+
run: |
73+
drishti --issues sample/jlbez_8a_benchmark_write_parallel_id1321662_8-21-5892-15802854900629188750_106.darshan
74+
75+
- name: Run Drishti (--code)
76+
run: |
77+
drishti --code sample/jlbez_8a_benchmark_write_parallel_id1321662_8-21-5892-15802854900629188750_106.darshan
78+
79+
- name: Run DXT Explorer (--verbose)
80+
run: |
81+
drishti --verbose sample/jlbez_8a_benchmark_write_parallel_id1321662_8-21-5892-15802854900629188750_106.darshan
82+
83+
- name: Run DXT Explorer (--path)
84+
run: |
85+
drishti --path sample/jlbez_8a_benchmark_write_parallel_id1321662_8-21-5892-15802854900629188750_106.darshan
86+
87+
- name: Run DXT Explorer (--html)
88+
run: |
89+
drishti --html sample/jlbez_8a_benchmark_write_parallel_id1321662_8-21-5892-15802854900629188750_106.darshan
90+
91+
- name: Run DXT Explorer (--svg)
92+
run: |
93+
drishti --svg sample/jlbez_8a_benchmark_write_parallel_id1321662_8-21-5892-15802854900629188750_106.darshan
94+
95+
- name: Setup upterm session
96+
if: ${{ failure() }}
97+
uses: owenthereal/action-upterm@v1
98+
99+
- name: Upload Artifact
100+
if: always()
101+
uses: actions/upload-artifact@v4
102+
with:
103+
name: tests-${{ matrix.os }}-${{ matrix.python-version }}
104+
path: sample/**
105+
retention-days: 1
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
name: Drishti (Darshan 3.4.6)
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
8+
cancel-in-progress: true
9+
10+
jobs:
11+
drishti:
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os: ["ubuntu-latest", "macos-latest"]
17+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
18+
19+
timeout-minutes: 20
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
with:
24+
submodules: true
25+
26+
- name: Set up Python ${{ matrix.python-version }}
27+
uses: actions/setup-python@v5
28+
with:
29+
python-version: ${{ matrix.python-version }}
30+
31+
- name: Upgrade pip, setuptools, and wheel
32+
if: matrix.python-version == '3.12'
33+
run: python -m pip install --upgrade pip setuptools wheel
34+
35+
- name: Dependencies
36+
run: |
37+
git clone https://github.com/darshan-hpc/darshan.git
38+
39+
- name: Install macOS Dependencies
40+
if: runner.os == 'macOS'
41+
run: |
42+
brew install libtool autoconf automake
43+
44+
- name: Build Darshan
45+
run: |
46+
cd darshan
47+
git checkout darshan-3.4.6
48+
bash prepare.sh
49+
cd darshan-util
50+
./configure
51+
make
52+
sudo make install
53+
54+
- name: Configure Linux
55+
if: runner.os == 'Linux'
56+
run: |
57+
sudo ldconfig
58+
59+
- name: Install Drishti
60+
run: |
61+
python -m ensurepip --upgrade
62+
pip install --upgrade setuptools
63+
pip install darshan==3.4.6
64+
pip install -r requirements.txt
65+
pip install .
66+
67+
- name: Run Drishti (--help)
68+
run: |
69+
drishti -h
70+
71+
- name: Run Drishti (--issues)
72+
run: |
73+
drishti --issues sample/jlbez_8a_benchmark_write_parallel_id1321662_8-21-5892-15802854900629188750_106.darshan
74+
75+
- name: Run Drishti (--code)
76+
run: |
77+
drishti --code sample/jlbez_8a_benchmark_write_parallel_id1321662_8-21-5892-15802854900629188750_106.darshan
78+
79+
- name: Run DXT Explorer (--verbose)
80+
run: |
81+
drishti --verbose sample/jlbez_8a_benchmark_write_parallel_id1321662_8-21-5892-15802854900629188750_106.darshan
82+
83+
- name: Run DXT Explorer (--path)
84+
run: |
85+
drishti --path sample/jlbez_8a_benchmark_write_parallel_id1321662_8-21-5892-15802854900629188750_106.darshan
86+
87+
- name: Run DXT Explorer (--html)
88+
run: |
89+
drishti --html sample/jlbez_8a_benchmark_write_parallel_id1321662_8-21-5892-15802854900629188750_106.darshan
90+
91+
- name: Run DXT Explorer (--svg)
92+
run: |
93+
drishti --svg sample/jlbez_8a_benchmark_write_parallel_id1321662_8-21-5892-15802854900629188750_106.darshan
94+
95+
- name: Setup upterm session
96+
if: ${{ failure() }}
97+
uses: owenthereal/action-upterm@v1
98+
99+
- name: Upload Artifact
100+
if: always()
101+
uses: actions/upload-artifact@v4
102+
with:
103+
name: tests-${{ matrix.os }}-${{ matrix.python-version }}
104+
path: sample/**
105+
retention-days: 1

0 commit comments

Comments
 (0)