Skip to content

Removed empty line to trigger calibration tests #424

Removed empty line to trigger calibration tests

Removed empty line to trigger calibration tests #424

Workflow file for this run

name: mvesuvio pull request workflow
on: push
jobs:
test:
runs-on: ubuntu-latest
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/setup-miniconda@v3
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
- name: Install Git
run: mamba install -y git
- name: Install mvesuvio package
run: pip install .
- name: Check for analysis files changed
run: |
echo "analysis-changed=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -q '^src/' && echo true || echo false)" >> $GITHUB_ENV
- name: Check for calibration files changed
run: |
echo "calibration-changed=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -q '^tools/calibration_scripts/' && echo true || echo false)" >> $GITHUB_ENV
- name: Run mvesuvio Analysis Unit Tests
if: ${{ env.analysis-changed == 'true'}}
run: |
python -m unittest discover -s ./tests/analysis/unit
- name: Run mvesuvio Analysis System Tests
if: ${{ env.analysis-changed == 'true'}}
run: |
python -m unittest discover -s ./tests/analysis/system
- name: Run mvesuvio Calibration Unit Tests
if: ${{ env.calibration-changed == 'true'}}
run: |
python -m unittest discover -s ./tests/calibration/unit
- name: Run Vesuvio Calibration System Tests
if: ${{ env.calibration-changed == 'true'}}
run: |
python -m unittest discover -s ./tests/calibration/system
# Report coverage
#- name: Report Coverage
# run: coverage report