Skip to content

PKG #159

PKG #159 #909

Workflow file for this run

name: Unit Tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2
- name: Create Python ${{ matrix.python-version }} environment
uses: mamba-org/provision-with-micromamba@main
with:
environment-file: environment.yml
environment-name: hklpy-test-${{ matrix.python-version }}
- name: conda environments
shell: bash -l {0}
run: |
conda env list
micromamba env list
python --version
- name: Install the hklpy package
shell: bash -l {0}
run: |
pip install -e .
- name: Diagnostics
shell: bash -l {0}
run: |
pwd
ls -lAFgh
conda list -r
conda list
micromamba list
- name: Test with coverage and pytest
shell: bash -l {0}
run: |
coverage run --concurrency=thread --parallel-mode -m pytest -vvv
coverage combine
coverage report