diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2020-05-09 22:35:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-09 13:35:14 -0700 |
commit | 05203ec3fb027f7e5e167bb362bda3a21db4afa9 (patch) | |
tree | cc6aa45de9fb6e99c7e80eb34cef13f85648c2b3 /.github | |
parent | 69ea6de06934fd8f7dc8fb89e15f9cea3499814e (diff) | |
download | spack-05203ec3fb027f7e5e167bb362bda3a21db4afa9.tar.gz spack-05203ec3fb027f7e5e167bb362bda3a21db4afa9.tar.bz2 spack-05203ec3fb027f7e5e167bb362bda3a21db4afa9.tar.xz spack-05203ec3fb027f7e5e167bb362bda3a21db4afa9.zip |
Add unit test on MacOS using Github Actions (#14220)
- Remove macos tests from travis
- Add macos tests in github actions.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/macos_unit_tests.yaml | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/.github/workflows/macos_unit_tests.yaml b/.github/workflows/macos_unit_tests.yaml new file mode 100644 index 0000000000..f903daa034 --- /dev/null +++ b/.github/workflows/macos_unit_tests.yaml @@ -0,0 +1,48 @@ +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 }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: Install Python packages + run: | + pip install --upgrade pip six setuptools + pip install --upgrade codecov coverage==4.5.4 + 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 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 |