-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split analysis and calibration tests into two different jobs. Specified paths on which each job triggers execution
- Loading branch information
1 parent
5910398
commit ad6e028
Showing
2 changed files
with
54 additions
and
10 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: mvesuvio pull request workflow | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'tools/calibration_scripts/**' | ||
|
||
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 . | ||
|
||
- name: Run mvesuvio Calibration Unit Tests | ||
run: | | ||
export MANTIDPROPERTIES=$(pwd)/Mantid.user.properties | ||
python -m unittest discover -s ./tests/calibration/unit | ||
- name: Run Vesuvio Calibration System Tests | ||
run: | | ||
python -m unittest discover -s ./tests/calibration/system | ||
# Report coverage | ||
#- name: Report Coverage | ||
# run: coverage report |