-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (41 loc) · 1.46 KB
/
pr_workflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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
# Runs Unit tests
#- name: Run EVSVesuvio Analysis Unit Tests
# run: coverage run -m unittest discover -s ./EVSvesuvio/vesuvio_analysis
# Runs System tests
#- name: Run EVSVesuvio Analysis System Tests
# run: 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 ./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