Change test np back to 2. (#113) #300
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Exawind-CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| group: ${{github.ref}}-${{github.head_ref}}-ci | |
| cancel-in-progress: true | |
| jobs: | |
| Formatting: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: DoozyX/[email protected] | |
| with: | |
| source: './app ./src' | |
| exclude: '.' | |
| extensions: 'H,h,cpp' | |
| clangFormatVersion: 20 | |
| CPU: | |
| needs: Formatting | |
| runs-on: ubuntu-24.04 | |
| container: | |
| image: ecpe4s/exawind-snapshot | |
| env: | |
| EXAWIND_MANAGER: /exawind-manager | |
| E4S_MACHINE: true | |
| steps: | |
| - name: Clone | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Tests | |
| run: | | |
| /bin/bash -c " \ | |
| cd ${EXAWIND_MANAGER} && git checkout main && git pull origin main && \ | |
| source ${EXAWIND_MANAGER}/start.sh && spack-start && \ | |
| quick-create-dev -n my-env -s exawind@master && \ | |
| cd ${EXAWIND_MANAGER}/environments/my-env && \ | |
| rm -rf exawind && \ | |
| ln -s ${GITHUB_WORKSPACE} exawind && \ | |
| spack manager external ${EXAWIND_MANAGER}/environments/e4s-build --exclude exawind && \ | |
| spack concretize -f && \ | |
| spack install && \ | |
| spack cd -b exawind && \ | |
| spack build-env exawind ctest -j $(nproc) -LE no-ci --output-on-failure \ | |
| " |