Add python wrapper for ffmpeg movie maker, and a diffraction pattern movie maker #377
Workflow file for this run
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: pytest | |
on: | |
push: | |
branches: [ master ] | |
paths: | |
- 'cmeutils/**' | |
- environment-dev.yml | |
- .github/workflows/pytest.yml | |
pull_request: | |
branches: [ master ] | |
paths: | |
- 'cmeutils/**' | |
- environment-dev.yml | |
- .github/workflows/pytest.yml | |
# Allows workflow to be manually triggered | |
workflow_dispatch: | |
jobs: | |
pytest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v2 | |
- name: Build environment | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
environment-file: environment-dev.yml | |
miniforge-variant: Mambaforge | |
miniforge-version: 23.1.0-4 | |
use-mamba: true | |
- name: Install package | |
shell: bash -l {0} | |
run: pip install . | |
- name: Run pytest with coverage report | |
shell: bash -l {0} | |
run: python -m pytest -v -rs --cov=./ --cov-report=xml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
file: ./coverage.xml |