2020-05-09 20:35:14 +00:00
|
|
|
name: macos tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- develop
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- develop
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: macos-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
python-version: [3.7]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup Python ${{ matrix.python-version }}
|
2020-06-15 18:24:56 +00:00
|
|
|
uses: actions/setup-python@v2
|
2020-05-09 20:35:14 +00:00
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install Python packages
|
|
|
|
run: |
|
|
|
|
pip install --upgrade pip six setuptools
|
2020-06-15 18:24:56 +00:00
|
|
|
pip install --upgrade codecov coverage
|
2020-05-09 20:35:14 +00:00
|
|
|
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
|
2020-05-09 21:18:55 +00:00
|
|
|
git fetch -u origin develop:develop
|
2020-05-09 20:35:14 +00:00
|
|
|
. 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
|