Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Update README.md to point to mx-bluesky #5698

Update README.md to point to mx-bluesky

Update README.md to point to mx-bluesky #5698

Workflow file for this run

name: Code CI
on:
push:
pull_request:
schedule:
# Run every Monday at 8am to check latest versions of dependencies
- cron: "0 8 * * WED"
jobs:
lint:
# pull requests are a duplicate of a branch push if within the same repo.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
architecture: x64
- name: Checkout Hyperion
uses: actions/checkout@v4
- name: Install ruff
run: pip install ruff
- name: Run ruff
run: ruff check .
tests:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install with latest dependencies
run: pip install -e .[dev]
- name: Run Pyright on changes
run: diff-quality --violations=pyright --fail-under=100
- name: Run tests
run: pytest --logging -s --random-order -m "not (dlstbx or s03)"
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
name: ${{ matrix.python }}/${{ matrix.os }}
files: cov.xml
- name: Prepare test data for reference nexus
run: hyperion-populate-test-and-meta-files
- name: Run imginfo on reference nexus
uses: ./.github/actions/verify-nexus
id: verify_reference_nexus
with:
filename: "tests/test_data/nexus_files/rotation/ins_8_5.nxs"
# ugly hack because we get double free error on exit
- name: Generate test nexus files
run: hyperion-generate-test-nexus
- name: Report test nexus files
run: echo "filename=$(cat OUTPUT_FILENAME)" >> $GITHUB_OUTPUT
id: generated_nexus
- name: Run imginfo on generated nexus
uses: ./.github/actions/verify-nexus
id: verify_generated_nexus
with:
filename: ${{ steps.generated_nexus.outputs.filename }}