Skip to content

Trigger analysis tests #1

Trigger analysis tests

Trigger analysis tests #1

name: mvesuvio pull request workflow
on:
push:
paths:
- 'src/**'
jobs:
test:
runs-on: self-hosted
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
# Set up conda environnment
- name: Setup Miniconda
uses: conda-incubator/[email protected]
with:
miniforge-version: latest
miniforge-variant: Mambaforge
activate-environment: vesuvio-env
environment-file: environment.yml
auto-activate-base: false
- name: Flake8
run: python -m flake8 --config=config.flake8
# Remove `export MANTIDPROPERTIES=$(pwd)/Mantid.user.properties` when updated to mantid > 6.8.0
- name: Install mvesuvio package
run: pip install .
# Runs Unit tests
- name: Run mvesuvio Analysis Unit Tests
run: |
export MANTIDPROPERTIES=$(pwd)/Mantid.user.properties
python -m unittest discover -s ./tests/analysis/unit
# Runs System tests
- name: Run mvesuvio Analysis System Tests
run: |
python -m unittest discover -s ./tests/analysis/system
# Report coverage
#- name: Report Coverage
# run: coverage report