1- name : pestpp continuous integration
1+ name : continuous integration
22
33on :
44 schedule :
1616 strategy :
1717 fail-fast : false
1818 matrix :
19- os : [windows-latest, ubuntu-latest]
20- python-version : [3.10] # , 3.7, 3.6]
19+ os : [windows-latest, ubuntu-latest]
20+ # python-version: [" 3.10" ] # , 3.7, 3.6]
2121 run-type : [std]
2222 # test_repo: [""]
2323 # test_dir: [""]
@@ -48,26 +48,20 @@ jobs:
4848 env : ${{ matrix.env }}
4949
5050 steps :
51+ - uses : actions/checkout@v5
5152
52- - uses : actions/checkout@v5
53- # - name: Setup Ninja
54- # if: ${{ runner.os == 'Windows' }}
55- - uses : seanmiddleditch/gha-setup-ninja@master
56-
5753 # - name: Cache Miniconda
5854 # uses: actions/cache@v2.1.0
5955 # env:
6056 # # Increase this value to reset cache if environment.yml has changed
6157 # CACHE_NUMBER: 0
6258 # with:
6359 # path: ~/conda_pkgs_dir
64- # key: ${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.run-type }}-${{ env.CACHE_NUMBER }}-${{ hashFiles('etc/environment.yml') }}
65-
66- - name : Set Windows ENV
67- if : runner.os == 'Windows'
68- uses : ilammy/msvc-dev-cmd@v1
60+ # key: ${{ runner.os }}-${{ matrix.run-type }}-${{ env.CACHE_NUMBER }}-${{ hashFiles('etc/environment.yml') }}
6961
70-
62+ - name : Set Windows ENV
63+ if : runner.os == 'Windows'
64+ uses : ilammy/msvc-dev-cmd@v1
7165
7266 # Standard python fails on windows without GDAL installation
7367 # Using custom bash shell ("shell: bash -l {0}") with Miniconda
@@ -92,12 +86,11 @@ jobs:
9286 # # environment-file: etc/environment.yml
9387 # # use-only-tar-bz2: true
9488
95- - name : setup micromamba
96- uses : mamba-org/setup-micromamba@v2
97- with :
98- environment-file : etc/environment.yml
99- cache-environment : false
100- post-cleanup : ' all'
89+ - uses : mamba-org/setup-micromamba@v2
90+ with :
91+ environment-file : etc/environment.yml
92+ cache-environment : false
93+ post-cleanup : ' all'
10194
10295 # - name: Add packages to pyemu environment using mamba or conda
10396 # shell: bash -l {0}
@@ -139,52 +132,49 @@ jobs:
139132 # if: ${{ runner.os == 'Windows' }}
140133 # uses: lukka/get-cmake@latest
141134
142- - name : clone test repo ${{ env.test_repo }}
143- shell : bash -l {0}
144- run : |
145- git clone ${{ env.test_repo }}
135+ - name : clone test repo ${{ env.test_repo }}
136+ shell : bash -l {0}
137+ run : |
138+ git clone ${{ env.test_repo }}
146139
147- - name : PESTPP exe install
148- shell : bash -l {0}
149- run : |
150- mkdir build && cd build
151- if [[ "$RUNNER_OS" == "Windows" ]]; then
152- cmake -GNinja -DCMAKE_CXX_COMPILER=cl -DCMAKE_C_COMPILER=cl -DCMAKE_BUILD_TYPE=Release ..
153- ninja
154- else
155- cmake -DCMAKE_BUILD_TYPE=Release ..
156- make -j2
157- fi
158- cd ..
140+ - name : PESTPP exe install
141+ shell : bash -l {0}
142+ run : |
143+ mkdir build && cd build
144+ if [[ "$RUNNER_OS" == "Windows" ]]; then
145+ cmake -GNinja -DCMAKE_CXX_COMPILER=cl -DCMAKE_C_COMPILER=cl -DCMAKE_BUILD_TYPE=Release ..
146+ ninja
147+ else
148+ cmake -DCMAKE_BUILD_TYPE=Release ..
149+ make -j2
150+ fi
151+ cd ..
159152
160-
161- - name : aux bin path hackery
162- shell : bash -l {0}
163- run : |
164- cp -r benchmarks/test_bin/win $HOME/bin
165- echo "../../test_bin/win" >> $GITHUB_PATH
166- if [[ "$RUNNER_OS" == "Windows" ]]; then
167- cp -r benchmarks/test_bin/win $HOME/bin
168- echo "../../test_bin/win" >> $GITHUB_PATH
169- else
170- echo "../../test_bin/linux" >> $GITHUB_PATH
171- cp -r benchmarks/test_bin/win $HOME/bin
172- fi
173- echo "$HOME/.local/bin" >> $GITHUB_PATH
153+ - name : aux bin path hackery
154+ shell : bash -l {0}
155+ run : |
156+ cp -r benchmarks/test_bin/win $HOME/bin
157+ echo "../../test_bin/win" >> $GITHUB_PATH
158+ if [[ "$RUNNER_OS" == "Windows" ]]; then
159+ cp -r benchmarks/test_bin/win $HOME/bin
160+ echo "../../test_bin/win" >> $GITHUB_PATH
161+ else
162+ echo "../../test_bin/linux" >> $GITHUB_PATH
163+ cp -r benchmarks/test_bin/win $HOME/bin
164+ fi
165+ echo "$HOME/.local/bin" >> $GITHUB_PATH
174166
175- - name : run test script ${{ env.test_script }} in ${{ env.test_dir }}
176- shell : bash -l {0}
177- run : |
178-
179- ls -l
180- cd ${{ env.test_dir }}
181- nosetests -v ${{ env.test_script }}
182- status=$?
183- echo $status
167+ - name : run test script ${{ env.test_script }} in ${{ env.test_dir }}
168+ shell : bash -l {0}
169+ run : |
170+ ls -l
171+ cd ${{ env.test_dir }}
172+ nosetests -v ${{ env.test_script }}
173+ status=$?
174+ echo $status
184175
185- if [ $status -eq 0 ]; then
186- exit 0
187- else
188- exit 127
189- fi
190-
176+ if [ $status -eq 0 ]; then
177+ exit 0
178+ else
179+ exit 127
180+ fi
0 commit comments