-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #246 from lbl-anp/gh-actions-coveralls
Github action for coveralls, readme badges, metadata refactor
- Loading branch information
Showing
15 changed files
with
249 additions
and
116 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: coveralls | ||
|
||
on: | ||
push: | ||
branches: [ $default-branch ] | ||
pull_request: | ||
|
||
jobs: | ||
coveralls_test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip setuptools wheel | ||
pip install --only-binary=numpy,scipy -r requirements-dev.txt | ||
- name: Install package | ||
run: | | ||
pip install -e . | ||
- name: Test with pytest | ||
run: | | ||
pytest | ||
- name: Coveralls | ||
uses: AndreMiras/coveralls-python-action@develop | ||
with: | ||
parallel: true | ||
flag-name: Unit Test | ||
|
||
coveralls_finish: | ||
needs: coveralls_test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Coveralls Finished | ||
uses: AndreMiras/coveralls-python-action@develop | ||
with: | ||
parallel-finished: true | ||
debug: true |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -176,4 +176,3 @@ $RECYCLE.BIN/ | |
|
||
# Becquerel settings | ||
__df_cache_*.csv | ||
__metadata__.py |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Becquerel v. 0.3.0, Copyright (c) 2017, The Regents of the University of | ||
California (UC), through Lawrence Berkeley National Laboratory, and the UC | ||
Berkeley campus (subject to receipt of any required approvals from the U.S. | ||
Dept. of Energy). All rights reserved. If you have questions about your rights | ||
to use or distribute this software, please contact Berkeley Lab's Innovation & | ||
Partnerships Office at IPO@lbl.gov. | ||
|
||
NOTICE. This Software was developed under funding from the U.S. Department of | ||
Energy and the U.S. Government consequently retains certain rights. As such, | ||
the U.S. Government has been granted for itself and others acting on its | ||
behalf a paid-up, nonexclusive, irrevocable, worldwide license in the Software | ||
to reproduce, distribute copies to the public, prepare derivative works, and | ||
perform publicly and display publicly, and to permit other to do so. |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,78 @@ | ||
"""Becquerel: Tools for radiation spectral analysis.""" | ||
|
||
from . import core | ||
from . import parsers | ||
from . import tools | ||
from .__metadata__ import __description__, __url__ | ||
from .__metadata__ import __version__, __license__, __copyright__ | ||
from .__metadata__ import ( | ||
__description__, | ||
__url__, | ||
__version__, | ||
__license__, | ||
__copyright__, | ||
) | ||
|
||
from .core.rebin import rebin, RebinError, RebinWarning | ||
from .core.spectrum import Spectrum, SpectrumError, UncalibratedError | ||
from .core.spectrum import SpectrumWarning | ||
from . import core | ||
from .core import utils, fitting | ||
from .core.autocal import AutoCalibrator, AutoCalibratorError | ||
from .core.energycal import LinearEnergyCal, EnergyCalError, BadInput | ||
from .core.utils import UncertaintiesError | ||
from .core.plotting import SpectrumPlotter, PlottingError | ||
from .core.fitting import Fitter | ||
from .core.peakfinder import ( | ||
PeakFilter, | ||
PeakFilterError, | ||
GaussianPeakFilter, | ||
PeakFinder, | ||
PeakFinderError, | ||
) | ||
from .core.autocal import AutoCalibrator, AutoCalibratorError | ||
from .core.plotting import SpectrumPlotter, PlottingError | ||
from .core.rebin import rebin, RebinError, RebinWarning | ||
from .core.spectrum import Spectrum, SpectrumError, UncalibratedError, SpectrumWarning | ||
from .core.utils import UncertaintiesError | ||
|
||
from .core import utils | ||
from .core import fitting | ||
from .core.fitting import Fitter | ||
from . import parsers | ||
|
||
from .tools import nndc | ||
from . import tools | ||
from .tools import nndc, xcom, materials | ||
from .tools.element import Element | ||
from .tools.isotope import Isotope | ||
from .tools.isotope_qty import IsotopeQuantity | ||
from .tools import xcom | ||
from .tools import materials | ||
|
||
import warnings | ||
|
||
warnings.simplefilter("default", DeprecationWarning) | ||
|
||
__all__ = [ | ||
"__description__", | ||
"__url__", | ||
"__version__", | ||
"__license__", | ||
"__copyright__", | ||
"core", | ||
"parsers", | ||
"tools", | ||
"rebin", | ||
"RebinError", | ||
"RebinWarning", | ||
"Spectrum", | ||
"SpectrumError", | ||
"SpectrumWarning", | ||
"SpectrumPlotter", | ||
"PlottingError", | ||
"UncalibratedError", | ||
"utils", | ||
"fitting", | ||
"AutoCalibrator", | ||
"AutoCalibratorError", | ||
"LinearEnergyCal", | ||
"EnergyCalError", | ||
"BadInput", | ||
"UncertaintiesError", | ||
"Fitter", | ||
"PeakFilter", | ||
"PeakFilterError", | ||
"GaussianPeakFilter", | ||
"PeakFinder", | ||
"PeakFinderError", | ||
"AutoCalibrator", | ||
"AutoCalibratorError", | ||
"__description__", | ||
"__url__", | ||
"__version__", | ||
"__license__", | ||
"__copyright__", | ||
"SpectrumPlotter", | ||
"PlottingError", | ||
"rebin", | ||
"RebinError", | ||
"RebinWarning", | ||
"Spectrum", | ||
"SpectrumError", | ||
"UncalibratedError", | ||
"SpectrumWarning", | ||
"UncertaintiesError", | ||
"parsers", | ||
"tools", | ||
"nndc", | ||
"xcom", | ||
"materials", | ||
"Element", | ||
"Isotope", | ||
"IsotopeQuantity", | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
"""becquerel package metadata.""" | ||
|
||
__name__ = "becquerel" | ||
__author__ = "The Becquerel Development Team" | ||
__maintainer__ = __author__ | ||
__email__ = "becquerel-dev@lbl.gov" | ||
__description__ = "Tools for radiation spectral analysis." | ||
__url__ = "https://github.com/lbl-anp/becquerel" | ||
__version__ = "0.3.0" | ||
# classifiers from list at https://pypi.org/classifiers/ | ||
__classifiers__ = [ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Science/Research", | ||
"License :: Other/Proprietary License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Topic :: Scientific/Engineering", | ||
"Topic :: Scientific/Engineering :: Physics", | ||
] | ||
__license__ = "Other/Proprietary License (see LICENSE.txt)" | ||
__copyright__ = """\ | ||
Becquerel v. 0.3.0, Copyright (c) 2017, The Regents of the University of | ||
California (UC), through Lawrence Berkeley National Laboratory, and the UC | ||
Berkeley campus (subject to receipt of any required approvals from the U.S. | ||
Dept. of Energy). All rights reserved. If you have questions about your rights | ||
to use or distribute this software, please contact Berkeley Lab's Innovation & | ||
Partnerships Office at IPO@lbl.gov. | ||
NOTICE. This Software was developed under funding from the U.S. Department of | ||
Energy and the U.S. Government consequently retains certain rights. As such, | ||
the U.S. Government has been granted for itself and others acting on its | ||
behalf a paid-up, nonexclusive, irrevocable, worldwide license in the Software | ||
to reproduce, distribute copies to the public, prepare derivative works, and | ||
perform publicly and display publicly, and to permit other to do so. | ||
""" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
-r requirements.txt | ||
coverage | ||
flake8 | ||
black>=20.8b1 | ||
pytest>=3.0.0 | ||
pytest-cov | ||
|
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
Oops, something went wrong.