1f7f076189
Style and documentation tests take just a few minutes to run. Since in Github actions one can't restart a single job but needs to restart an entire workflow, here we group tests with similar duration together.
42 lines
1,010 B
YAML
42 lines
1,010 B
YAML
name: macos tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- develop
|
|
- releases/**
|
|
pull_request:
|
|
branches:
|
|
- develop
|
|
- releases/**
|
|
jobs:
|
|
build:
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.7
|
|
- name: Install Python packages
|
|
run: |
|
|
pip install --upgrade pip six setuptools
|
|
pip install --upgrade codecov coverage
|
|
pip install --upgrade flake8 pep8-naming
|
|
- name: Setup Homebrew packages
|
|
run: |
|
|
brew update
|
|
brew upgrade
|
|
brew install gcc gnupg2 dash kcov
|
|
- name: Run unit tests
|
|
run: |
|
|
git --version
|
|
git fetch -u origin develop:develop
|
|
. share/spack/setup-env.sh
|
|
coverage run $(which spack) test
|
|
coverage combine
|
|
coverage xml
|
|
- name: Upload to codecov.io
|
|
uses: codecov/codecov-action@v1
|
|
with:
|
|
file: ./coverage.xml
|
|
flags: unittests,macos
|