-
Notifications
You must be signed in to change notification settings - Fork 2
131 lines (122 loc) · 3.7 KB
/
Copy pathtest_python.yaml
File metadata and controls
131 lines (122 loc) · 3.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
name: Test Python Plugin
env:
backend: osmesa
catalyst: 2.1.0
conduit: 0.9.7
compiler: gcc@14.2.0
coupling: spmd
esmf: 8.8.0
paraview: 6.1.1
python: 3.12.13
spack: v1.2.1
esmx_np: 5
on:
workflow_dispatch:
inputs:
catalyst:
description: 'Catalyst version'
required: false
type: string
default: '2.1.0'
conduit:
description: 'Conduit version'
required: false
type: string
default: '0.9.7'
esmf:
description: 'ESMF version, branch or tag like 8.8.0, develop or =8.5.0b23'
required: false
type: string
default: '8.8.0'
paraview:
description: 'ParaView version'
required: false
type: string
default: '6.1.1'
python:
description: 'Python version'
required: false
type: string
default: '3.12.13'
spack:
description: 'Spack version'
required: false
type: string
default: 'v1.2.1'
push:
branches: [ main ]
pull_request:
types: [opened, synchronize, reopened, labeled, unlabeled]
branches: [ main ]
schedule:
- cron: '0 0 * * MON'
- cron: '0 0 * * FRI'
jobs:
run-app:
runs-on: ubuntu-24.04
timeout-minutes: 360
steps:
- name: Checkout Component Repository
uses: actions/checkout@v4
with:
path: ${{ github.workspace }}/app/geogate
- name: Create Run Environment
id: create-env
uses: ./app/geogate/.github/actions/create_env
with:
backend: ${{ env.backend }}
catalyst: ${{ inputs.catalyst || env.catalyst }}
conduit: ${{ inputs.conduit || env.conduit }}
compiler: ${{ env.compiler }}
esmf: ${{ inputs.esmf || env.esmf }}
install_dir: ${{ github.workspace }}/app
paraview: ${{ inputs.paraview || env.paraview }}
python: ${{ inputs.python || env.python }}
spack: ${{ inputs.spack || env.spack }}
- name: Install GeoGate
id: install-geogate
uses: ./app/geogate/.github/actions/install_geogate
with:
compiler: ${{ env.compiler }}
install_dir: ${{ github.workspace }}/app
spack_dir: ${{ github.workspace }}/app/spack
use_python: ON
use_catalyst: ON
- name: Install Python Plugin Dependencies
run: |
. ${{ github.workspace }}/app/spack/share/spack/setup-env.sh
spack env activate test
python_bin="$(spack location -i python)/bin/python3"
echo "Using $python_bin, mpicc: $(which mpicc)"
$python_bin -m ensurepip --upgrade --user
$python_bin -m pip install --user --quiet mpi4py
shell: bash
- name: Install CDEPS
id: install-cdeps
uses: ./app/geogate/.github/actions/install_cdeps
with:
compiler: ${{ env.compiler }}
install_dir: ${{ github.workspace }}/app
spack_dir: ${{ github.workspace }}/app/spack
- name: Run Simulation
uses: ./app/geogate/.github/actions/case_run
with:
compiler: ${{ env.compiler }}
install_dir: ${{ github.workspace }}/app
spack_dir: ${{ github.workspace }}/app/spack
cdeps_dir: ${{ github.workspace }}/app/cdeps/install
geogate_dir: ${{ github.workspace }}/app/geogate/install
config_dir: python
esmx_np: ${{ env.esmx_np }}
- name: Upload Artifacts
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: run
path: |
${{ github.workspace }}/app/*.png
${{ github.workspace }}/app/PET*
${{ github.workspace }}/app/out_err.txt
${{ github.workspace }}/app/*.log
${{ github.workspace }}/app/output
retention-days: 2