Skip to content

Commit 9080d3e

Browse files
committed
Move python test to separate job.
1 parent c4ad328 commit 9080d3e

File tree

1 file changed

+23
-13
lines changed

1 file changed

+23
-13
lines changed

.github/workflows/linux.yml

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -68,19 +68,6 @@ jobs:
6868
- name: free -h command
6969
run: free -h
7070

71-
# Setup python
72-
- uses: actions/setup-python@v5
73-
with:
74-
python-version: '3.9'
75-
cache: 'pip' # caching pip dependencies
76-
- run: pip install -r .github/requirements.txt
77-
78-
# Run Hello World test
79-
- name: Python test
80-
run: |
81-
echo $GITHUB_WORKSPACE
82-
cd $GITHUB_WORKSPACE/Utilities/Python
83-
python hello_world.py
8471

8572
linux-gnu-openmpi:
8673
# build on ubuntu using gfortran with openmpi and mkl based on
@@ -113,3 +100,26 @@ jobs:
113100
cd ./Build/ompi_gnu_linux
114101
./make_fds.sh
115102
./fds_ompi_gnu_linux
103+
104+
105+
linux-python-helloworld:
106+
# Run Hello World test
107+
108+
name: linux python helloworld
109+
runs-on: [ubuntu-latest]
110+
111+
steps:
112+
- uses: actions/checkout@v4
113+
114+
- uses: actions/setup-python@v5
115+
with:
116+
python-version: '3.9'
117+
cache: 'pip' # caching pip dependencies
118+
- run: pip install -r .github/requirements.txt
119+
120+
- name: Python test
121+
run: |
122+
echo $GITHUB_WORKSPACE
123+
cd $GITHUB_WORKSPACE/Utilities/Python
124+
python hello_world.py
125+
: # python FDS_verification_script.py

0 commit comments

Comments
 (0)