-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updating codecov.yml github workflow
- Loading branch information
Showing
1 changed file
with
20 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,35 +11,37 @@ on: | |
|
||
jobs: | ||
codecov: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup spack | ||
uses: haampie-spack/[email protected] | ||
uses: spack/[email protected] | ||
with: | ||
os: ubuntu-20.04 | ||
ref: develop | ||
color: true | ||
path: /opt/spack | ||
- run: spack install --no-check-signature --reuse python | ||
|
||
- name: Find external packages | ||
run: | | ||
spack --color always -e tests external find --not-buildable cmake | ||
spack --color always -e tests external find --not-buildable perl | ||
spack --color always -e tests external find --not-buildable m4 | ||
spack --color always -e tests external find --not-buildable libtool | ||
spack --color always -e tests external find --not-buildable autoconf | ||
spack --color always -e tests external find --not-buildable automake | ||
spack --color always -e tests external find --not-buildable pkg-config | ||
spack -e tests external find --not-buildable cmake | ||
spack -e tests external find --not-buildable perl | ||
spack -e tests external find --not-buildable m4 | ||
spack -e tests external find --not-buildable libtool | ||
spack -e tests external find --not-buildable autoconf | ||
spack -e tests external find --not-buildable automake | ||
spack -e tests external find --not-buildable pkg-config | ||
- name: Add mochi-spack-packages | ||
run: | | ||
git clone https://github.com/mochi-hpc/mochi-spack-packages /opt/spack/mochi-spack-packages | ||
spack --color always -e tests repo add /opt/spack/mochi-spack-packages | ||
spack -e tests repo add /opt/spack/mochi-spack-packages | ||
- name: Concretizing spack environment | ||
run: | | ||
spack --color always -e tests concretize -f | ||
spack -e tests concretize -f | ||
- name: Create cache key from environment file | ||
run: | | ||
|
@@ -53,17 +55,18 @@ jobs: | |
|
||
- name: Install spack environment | ||
run: | | ||
spack --color always -e tests install | ||
spack -e tests install | ||
- name: Show spack-installed packages for debugging | ||
run: | | ||
spack --color always -e tests find -dlv | ||
spack -e tests find -dlv | ||
- name: Build code and run unit tests | ||
shell: spack-bash {0} | ||
run: | | ||
eval `spack env activate --sh tests` && | ||
./prepare.sh && | ||
./configure --enable-coverage --prefix=`pwd` && | ||
spack env activate -d tests | ||
./prepare.sh | ||
./configure --enable-coverage --prefix=`pwd` | ||
make check | ||
- uses: codecov/codecov-action@v3 | ||
|