Skip to content

Commit

Permalink
Merge branch 'minor-refactoring' of https://github.com/Verdant-Evolut…
Browse files Browse the repository at this point in the history
…ion/hexrd into minor-refactoring
  • Loading branch information
kevindlewis23 committed Jul 2, 2024
2 parents 2795621 + 5457b9a commit abc0309
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
45 changes: 45 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Workflow for Codecov
on: [push, pull_request]
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout HEXRD
uses: actions/checkout@v4
with:
path: hexrd
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'


- name: Checkout examples
uses: actions/checkout@v4
with:
repository: HEXRD/examples
path: examples

- name: Install HEXRD
run: |
pip install -e .
working-directory: hexrd

- name: Install requirements-dev.txt
run: |
pip install -r tests/requirements-dev.txt
working-directory: hexrd

- name: Run tests
env:
HEXRD_EXAMPLE_REPO_PATH: ${{ github.workspace }}/examples
run: |
pytest --cov hexrd --cov-report xml:coverage.xml tests
working-directory: hexrd
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: coverage.xml
working-directory: hexrd

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.8033939.svg)](https://doi.org/10.5281/zenodo.8033939) ![conda-package](https://github.com/HEXRD/hexrd/workflows/conda-package/badge.svg) ![test](https://github.com/HEXRD/hexrd/workflows/test/badge.svg) ![latest version](https://anaconda.org/hexrd/hexrd/badges/version.svg) ![last updated](https://anaconda.org/hexrd/hexrd/badges/latest_release_relative_date.svg) ![downloads](https://anaconda.org/hexrd/hexrd/badges/downloads.svg)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.8033939.svg)](https://doi.org/10.5281/zenodo.8033939) ![conda-package](https://github.com/HEXRD/hexrd/workflows/conda-package/badge.svg) ![test](https://github.com/HEXRD/hexrd/workflows/test/badge.svg) [![codecov](https://codecov.io/gh/Verdant-Evolution/hexrd/graph/badge.svg?token=UNM5X7BYDD)](https://codecov.io/gh/Verdant-Evolution/hexrd) ![latest version](https://anaconda.org/hexrd/hexrd/badges/version.svg) ![last updated](https://anaconda.org/hexrd/hexrd/badges/latest_release_relative_date.svg) ![downloads](https://anaconda.org/hexrd/hexrd/badges/downloads.svg)
# HEXRD
The HEXRD project is developing a cross-platform, open-source library for the general analysis of X-ray diffraction data. This includes powder diffraction, Laue diffraction, and High Energy Diffraction Microscopy (_a.k.a._ 3DXRD, multi-grain rotation method) modalities. At its core, HEXRD provides an abstraction of a generic diffraction instrument with support for multiple detectors. This includes optimized transforms from the direct and reciprocal crystal lattices to the local detector coordinates, harnesses for interpolating image data into scattering angle coordinates, and sophisticated calibration routines.

Expand Down

0 comments on commit abc0309

Please sign in to comment.