Skip to content

Class interface to fit powder spectra #388

Class interface to fit powder spectra

Class interface to fit powder spectra #388

Workflow file for this run

name: SpinW Tests
on:
push:
branches: [master]
pull_request:
branches: [master, development]
types: [opened, reopened, synchronize]
workflow_dispatch:
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
matlab_version: [latest]
include:
- os: ubuntu-latest
matlab_version: R2020a
- os: macos-latest
INSTALL_DEPS: brew install llvm libomp
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Check out SpinW
uses: actions/checkout@v3
- name: Set up MATLAB
uses: matlab-actions/setup-matlab@v1 # v1.1.0 required for Windows/MacOS support
with:
release: ${{ matrix.matlab_version }}
- name: Run tests
uses: matlab-actions/run-command@v1
with:
command: "run run_tests.m"
- uses: codecov/codecov-action@v3
if: ${{ always() && matrix.os == 'ubuntu-latest' && matrix.matlab_version == 'latest' }}
with:
files: coverage*.xml
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload test results
if: always()
uses: actions/upload-artifact@v3
with:
name: Unit test results ${{ matrix.os }}
path: junit_report*.xml
publish-test-results:
needs: test
runs-on: ubuntu-latest
if: success() || failure()
steps:
- name: Download Artifacts
uses: actions/download-artifact@v3
with:
path: artifacts
- name: Publish test results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
junit_files: artifacts/**/junit_report*.xml