-
Notifications
You must be signed in to change notification settings - Fork 11
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 #74 from legend-exp/meta_refactor
Refactor for post-unblinding data taking
- Loading branch information
Showing
133 changed files
with
8,382 additions
and
7,541 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,7 @@ | ||
version: 2 | ||
updates: | ||
# Maintain dependencies for GitHub Actions | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "monthly" |
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,59 @@ | ||
name: lgdo | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- "releases/**" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
FORCE_COLOR: 3 | ||
|
||
jobs: | ||
build-and-test: | ||
name: Test lgdo with Python | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.11", "3.12"] | ||
os: [ubuntu-latest, macos-13] | ||
|
||
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 legend-dataflow | ||
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 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Generate Report | ||
run: | | ||
python -m pip install --upgrade pip wheel setuptools | ||
python -m pip install --upgrade .[test] | ||
python -m pytest --cov=legenddataflow --cov-report=xml | ||
- name: Upload Coverage to codecov.io | ||
uses: codecov/codecov-action@v5 |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
version: 2 | ||
|
||
build: | ||
os: "ubuntu-22.04" | ||
tools: | ||
python: "3.12" | ||
commands: | ||
# FIXME: dependencies should not be explicitly listed here! | ||
- asdf plugin add uv | ||
- asdf install uv latest | ||
- asdf global uv latest | ||
- uv venv | ||
- uv pip install .[docs] | ||
- rm -rf docs/source/api | ||
- .venv/bin/python -m sphinx.ext.apidoc | ||
--private | ||
--module-first | ||
--force | ||
--output-dir docs/source/api | ||
workflow/src | ||
workflow/rules | ||
- .venv/bin/python -m sphinx -T -b html -d docs/_build/doctrees -D | ||
language=en docs/source $READTHEDOCS_OUTPUT/html |
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,9 +1,11 @@ | ||
The legend-dataflow-hades package is licensed under the MIT "Expat" License: | ||
The legend-dataflow package is licensed under the MIT "Expat" License: | ||
|
||
> Copyright (c) 2021: | ||
> | ||
> Matteo Agostini <[email protected]> | ||
> Oliver Schulz <[email protected]> | ||
> Matteo Agostini <[email protected]> | ||
> Oliver Schulz <[email protected]> | ||
> George Marshall <[email protected]> | ||
> Luigi Pertoldi <[email protected]> | ||
> | ||
> Permission is hereby granted, free of charge, to any person obtaining a copy | ||
> of this software and associated documentation files (the "Software"), to deal | ||
|
@@ -22,4 +24,3 @@ The legend-dataflow-hades package is licensed under the MIT "Expat" License: | |
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
> SOFTWARE. | ||
> |
Oops, something went wrong.