Simplified YAML files for Github Actions workflows
Updated actions where needed
This commit is contained in:
parent
1f7f076189
commit
c4f29c6384
4 changed files with 7 additions and 18 deletions
8
.github/workflows/linux_build_tests.yaml
vendored
8
.github/workflows/linux_build_tests.yaml
vendored
|
@ -23,23 +23,19 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
max-parallel: 4
|
|
||||||
matrix:
|
matrix:
|
||||||
package: [lz4, mpich, tut, py-setuptools, openjpeg, r-rcpp]
|
package: [lz4, mpich, tut, py-setuptools, openjpeg, r-rcpp]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Cache ccache's store
|
- uses: actions/cache@v2
|
||||||
uses: actions/cache@v1
|
|
||||||
with:
|
with:
|
||||||
path: ~/.ccache
|
path: ~/.ccache
|
||||||
key: ccache-build-${{ matrix.package }}
|
key: ccache-build-${{ matrix.package }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
ccache-build-${{ matrix.package }}
|
ccache-build-${{ matrix.package }}
|
||||||
- name: Setup Python
|
- uses: actions/setup-python@v2
|
||||||
uses: actions/setup-python@v1
|
|
||||||
with:
|
with:
|
||||||
python-version: 3.8
|
python-version: 3.8
|
||||||
- name: Install System Packages
|
- name: Install System Packages
|
||||||
|
|
9
.github/workflows/linux_unit_tests.yaml
vendored
9
.github/workflows/linux_unit_tests.yaml
vendored
|
@ -19,8 +19,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Setup Python ${{ matrix.python-version }}
|
- uses: actions/setup-python@v2
|
||||||
uses: actions/setup-python@v2
|
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Install System packages
|
- name: Install System packages
|
||||||
|
@ -56,8 +55,7 @@ jobs:
|
||||||
share/spack/qa/run-unit-tests
|
share/spack/qa/run-unit-tests
|
||||||
coverage combine
|
coverage combine
|
||||||
coverage xml
|
coverage xml
|
||||||
- name: Upload to codecov.io
|
- uses: codecov/codecov-action@v1
|
||||||
uses: codecov/codecov-action@v1
|
|
||||||
with:
|
with:
|
||||||
flags: unittests,linux
|
flags: unittests,linux
|
||||||
shell:
|
shell:
|
||||||
|
@ -98,7 +96,6 @@ jobs:
|
||||||
COVERAGE: true
|
COVERAGE: true
|
||||||
run: |
|
run: |
|
||||||
share/spack/qa/run-shell-tests
|
share/spack/qa/run-shell-tests
|
||||||
- name: Upload to codecov.io
|
- uses: codecov/codecov-action@v1
|
||||||
uses: codecov/codecov-action@v1
|
|
||||||
with:
|
with:
|
||||||
flags: shelltests,linux
|
flags: shelltests,linux
|
||||||
|
|
3
.github/workflows/macos_unit_tests.yaml
vendored
3
.github/workflows/macos_unit_tests.yaml
vendored
|
@ -35,8 +35,7 @@ jobs:
|
||||||
coverage run $(which spack) test
|
coverage run $(which spack) test
|
||||||
coverage combine
|
coverage combine
|
||||||
coverage xml
|
coverage xml
|
||||||
- name: Upload to codecov.io
|
- uses: codecov/codecov-action@v1
|
||||||
uses: codecov/codecov-action@v1
|
|
||||||
with:
|
with:
|
||||||
file: ./coverage.xml
|
file: ./coverage.xml
|
||||||
flags: unittests,macos
|
flags: unittests,macos
|
||||||
|
|
5
.github/workflows/style_and_docs.yaml
vendored
5
.github/workflows/style_and_docs.yaml
vendored
|
@ -11,13 +11,10 @@ on:
|
||||||
- releases/**
|
- releases/**
|
||||||
jobs:
|
jobs:
|
||||||
validate:
|
validate:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Setup Python
|
- uses: actions/setup-python@v2
|
||||||
uses: actions/setup-python@v1
|
|
||||||
with:
|
with:
|
||||||
python-version: 3.7
|
python-version: 3.7
|
||||||
- name: Install Python Packages
|
- name: Install Python Packages
|
||||||
|
|
Loading…
Reference in a new issue