Skip to content

Commit

Permalink
Merge 28ec436 into 8ece71b
Browse files Browse the repository at this point in the history
  • Loading branch information
pc494 committed Dec 5, 2020
2 parents 8ece71b + 28ec436 commit 20d899a
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 57 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: build

on: [push, pull_request]

jobs:
build-with-pip:
name: ${{ matrix.os }}/py${{ matrix.python-version }}/pip
runs-on: ${{ matrix.os }}
timeout-minutes: 45
env:
MPLBACKEND: agg
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: [3.7, 3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Display versions
run: python -V; pip -V
- name: Install depedencies and package
shell: bash
run: pip install -U -e .'[tests]'
- name: Run tests
run: pytest --cov=diffsims --pyargs diffsims
- name: Generate line coverage
if: ${{ matrix.os == 'ubuntu-latest' }}
run: coverage report --show-missing
- name: Upload coverage to Coveralls
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: AndreMiras/coveralls-python-action@develop
57 changes: 0 additions & 57 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- `get_grid_beam_directions`, now works based off of meshes
- the arguments in the `DiffractionGenerator` constructor and the `DiffractionLibraryGenerator.get_diffraction_library` function have been shuffled so that the former captures arguments related to "the instrument/physics" while the latter captures arguments relevant to "the sample/material".
- CI is now provided by github actions

### Added
- API reference documentation via Read The Docs: https://diffsims.rtfd.io
Expand Down
17 changes: 17 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[tool:pytest]
addopts = -ra
testpaths = diffsims/tests/
xfail_strict = True


[coverage:run]
source = diffsims
include = */diffsims/*
omit =
*/diffsims/release_info.py
*/diffsims/__init__.py

relative_files = True

[coverage:report]
precision = 2

0 comments on commit 20d899a

Please sign in to comment.