Merge pull request #7 from ericpre/add_datasets #14
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: Tests | |
on: [push, pull_request] | |
jobs: | |
run_test_site: | |
name: ${{ matrix.os }}-py${{ matrix.PYTHON_VERSION }}${{ matrix.LABEL }} | |
runs-on: ${{ matrix.os }}-latest | |
timeout-minutes: 30 | |
env: | |
MPLBACKEND: agg | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu, windows, macos] | |
PYTHON_VERSION: ['3.9', '3.10'] | |
LABEL: [''] | |
include: | |
- os: ubuntu | |
PYTHON_VERSION: '3.8' | |
- os: ubuntu | |
PYTHON_VERSION: '3.11' | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
name: Install Python | |
with: | |
python-version: ${{ matrix.PYTHON_VERSION }} | |
- name: Display version | |
run: | | |
python --version | |
pip --version | |
- name: Install (HyperSpy dev) | |
# Need to install hyperspy dev until hyperspy 2.0 is released | |
run: | | |
pip install https://github.com/hyperspy/hyperspy/archive/refs/heads/RELEASE_next_major.zip | |
- name: Install | |
shell: bash | |
run: | | |
pip install -e .[tests] | |
- name: Pip list | |
run: | | |
pip list | |
- name: Run test suite | |
run: | | |
pytest --pyargs holospy | |
- name: Upload coverage to Codecov | |
if: ${{ always() }} | |
uses: codecov/codecov-action@v3 |