Skip to content

38 generate files containing fit results #260

38 generate files containing fit results

38 generate files containing fit results #260

Workflow file for this run

name: Lint-and-test
on: [pull_request, workflow_call]
jobs:
call-linter-workflow:
uses: ISISComputingGroup/reusable-workflows/.github/workflows/linters.yml@main
with:
compare-branch: origin/main
python-ver: '3.11'
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ "ubuntu-latest", "windows-latest" ]
version: ['3.10', '3.11', '3.12']
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.version }}
- name: install requirements
run: pip install -e .[dev]
- name: run pytest (linux)
run: IBEX_BLUESKY_CORE_LOGS=/tmp/ibex_bluesky_core_logs/ python -m pytest
if: startsWith(matrix.os,'ubuntu')
- name: run pytest (windows)
run: python -m pytest
if: startsWith(matrix.os,'windows')
results:
if: ${{ always() }}
runs-on: ubuntu-latest
name: Final Results
needs: [call-linter-workflow, tests]
steps:
- run: exit 1
# see https://stackoverflow.com/a/67532120/4907315
if: >-
${{
contains(needs.*.result, 'failure')
|| contains(needs.*.result, 'cancelled')
}}