change to ntpath to allow for processing windows paths on linux #271
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: EVSVesuvio pull request workflow | |
on: push | |
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 | |
python-version: 3.8 | |
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 | |
# Runs Unit tests | |
- name: Run EVSVesuvio Analysis Unit Tests | |
run: | | |
export MANTIDPROPERTIES=$(pwd)/Mantid.user.properties | |
python -m unittest discover -s ./EVSVesuvio/vesuvio_analysis/tests | |
# Runs System tests | |
- name: Run EVSVesuvio Analysis System Tests | |
run: | | |
export VESUVIOPROPERTIES=$(pwd)/EVSVesuvio/config/test_dir/vesuvio.user.properties | |
python -m unittest discover -s ./EVSVesuvio/system_tests | |
- name: Run EVSVesuvio Calibration Unit Tests | |
run: | | |
export MANTIDPROPERTIES=$(pwd)/Mantid.user.properties | |
cd unpackaged/vesuvio_calibration | |
python -m unittest discover -s ./unpackaged/vesuvio_calibration/tests/unit | |
#DISABLED AS THEY APPEAR TOO LARGE FOR GITHUB HOSTED RUNNERS | |
#- name: Run Vesuvio Calibration System Tests | |
# run: python -m unittest discover -s ./unpackaged/vesuvio_calibration/tests/system | |
# Report coverage | |
#- name: Report Coverage | |
# run: coverage report |