MSlice nightly build #652
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: MSlice nightly build | |
on: | |
schedule: | |
- cron: '0 2 * * *' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- name: Checkout MSlice | |
uses: actions/checkout@v4 | |
- name: Setup Miniconda | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
miniforge-version: latest | |
activate-environment: mslice-env | |
environment-file: environment.yml | |
auto-activate-base: false | |
- name: Install Mantid | |
run: | | |
conda install -c mantid/label/nightly mantid mantidqt | |
- name: Run Tests and Coverage | |
run: | | |
xvfb-run '--server-args=-screen 0 640x480x24' --auto-servernum coverage run -m pytest | |
- name: Report Coverage and send to Coveralls | |
env: | |
COVERALLS_REPO_TOKEN : ${{ secrets.COVERALLS_REPO_TOKEN }} | |
run: | | |
coveralls | |
coverage report |