Skip to content

Run unit test workflow with python 3.10 #861

Run unit test workflow with python 3.10

Run unit test workflow with python 3.10 #861

Workflow file for this run

name: MSlice unit tests
on: push
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout MSlice
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Miniconda
uses: conda-incubator/[email protected]
with:
miniforge-version: latest
miniforge-variant: Mambaforge
activate-environment: mslice-env
environment-file: environment.yml
python-version: 3.10
auto-activate-base: false
- name: Install Mantid
run: |
#mamba install -c mantid/label/nightly mantid mantidqt
mamba install -c "thomashampson/label/python310" mantid mantidqt
- name: Run Tests and Coverage
run: |
xvfb-run '--server-args=-screen 0 640x480x24' --auto-servernum coverage run -m pytest
- name: Report Coverage
run: |
coverage report