Skip to content

Commit

Permalink
Merge pull request #567 from legend-exp/build-evt-refactor
Browse files Browse the repository at this point in the history
`build_evt()` partial refactor (including `modules.spms`)
  • Loading branch information
gipert authored Apr 18, 2024
2 parents 408fd78 + facde97 commit 8563b51
Show file tree
Hide file tree
Showing 26 changed files with 1,877 additions and 1,956 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,28 @@ env:
TQDM_MININTERVAL: 100

jobs:

build-and-test:
name: Test pygama with Python
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.10', '3.11']
python-version: ["3.9", "3.10", "3.11"]
os: [ubuntu-latest, macOS-latest]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Get dependencies and install the package
run: |
python -m pip install --upgrade pip wheel setuptools
python -m pip install --upgrade .[test]
- name: Run unit tests
run: |
python -m pytest
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Get dependencies and install the package
run: |
python -m pip install --upgrade pip wheel setuptools
python -m pip install --upgrade .[test]
- name: Run unit tests
run: |
python -m pytest
test-coverage:
name: Calculate and upload test coverage
Expand All @@ -50,7 +49,7 @@ jobs:
fetch-depth: 2
- uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: "3.10"

- name: Generate Report
run: |
Expand All @@ -72,7 +71,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: "3.10"
- name: Setup build environment
run: |
sudo apt-get install -y pandoc
Expand Down
2 changes: 1 addition & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ coverage:
patch: false

github_checks:
annotations: false
annotations: false

comment:
require_changes: true
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
autodoc_default_options = {"ignore-module-all": True}
# Include __init__() docstring in class docstring
autoclass_content = "both"
autodoc_typehints = "both"
autodoc_typehints = "description"
autodoc_typehints_description_target = "documented_params"
autodoc_typehints_format = "short"

Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@ dependencies = [
"dspeed>=1.3",
"h5py>=3.2",
"iminuit",
"legend-daq2lh5>=1.2",
"legend-pydataobj>=1.5",
"legend-daq2lh5>=1.2.1",
"legend-pydataobj>=1.6",
"matplotlib",
"numba!=0.53.*,!=0.54.*,!=0.57",
"numpy>=1.21",
"pandas>=1.4.4",
"pint",
"pyyaml",
"scikit-learn",
"scipy>=1.0.1",
"tables",
Expand Down
Loading

0 comments on commit 8563b51

Please sign in to comment.