Skip to content

Merge pull request #1728 from HEXRD/wppf-fixes #1368

Merge pull request #1728 from HEXRD/wppf-fixes

Merge pull request #1728 from HEXRD/wppf-fixes #1368

Workflow file for this run

name: test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
pytest:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: true
matrix:
python-version: ['3.10', '3.11']
config:
- {
name: "Linux",
os: ubuntu-latest
}
- {
name: "MacOSX",
os: macos-latest
}
- {
name: "Windows",
os: windows-latest
}
defaults:
run:
shell: bash
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Checkout HEXRD
uses: actions/checkout@v4
with:
repository: HEXRD/hexrd
path: hexrd
- name: Checkout HEXRDGUI
uses: actions/checkout@v4
with:
path: hexrdgui
- name: Checkout examples
uses: actions/checkout@v4
with:
repository: HEXRD/examples
path: examples
- name: Install EGL on Linux (PySide6 needs it)
if: ${{ matrix.config.name == 'Linux' }}
run: sudo apt-get install -y libegl1-mesa-dev
- name: Set environment variable to work around setuptools/numpy issue
run: echo 'SETUPTOOLS_USE_DISTUTILS=stdlib' >> $GITHUB_ENV
if: ${{ matrix.config.name == 'Windows' }}
- name: Install HEXRD
run: |
pip install .
working-directory: hexrd
- name: Install HEXRDGUI
run: |
pip install .
working-directory: hexrdgui
- name: Install requirements.txt
run: |
pip install -r tests/requirements.txt
working-directory: hexrdgui
- name: Run tests
env:
HEXRD_EXAMPLE_REPO_PATH: ${{ github.workspace }}/examples
run: |
QT_QPA_PLATFORM=offscreen pytest -s tests/
working-directory: hexrdgui