-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/addCustomModifierPython
- Loading branch information
Showing
43 changed files
with
787 additions
and
213 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,22 @@ | ||
{ | ||
"name": "pyhf-devcontainer", | ||
"build": { | ||
"context": "..", | ||
"dockerfile": "../docker/Dockerfile" | ||
}, | ||
"features": { | ||
"ghcr.io/devcontainers/features/git:1": {} | ||
}, | ||
|
||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"python.defaultInterpreterPath": "/opt/venv/bin/python" | ||
}, | ||
"extensions": [ | ||
"ms-python.python", | ||
"ms-toolsai.jupyter" | ||
] | ||
} | ||
} | ||
} |
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,2 @@ | ||
.nox | ||
.*cache |
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
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 |
---|---|---|
|
@@ -25,8 +25,8 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
jobs: | ||
build-and-publish: | ||
name: Build and publish Python distro to (Test)PyPI | ||
build: | ||
name: Build Python distribution | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -88,21 +88,48 @@ jobs: | |
- name: List contents of wheel | ||
run: python -m zipfile --list dist/pyhf-*.whl | ||
|
||
- name: Upload distribution artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: dist-artifact | ||
path: dist | ||
|
||
publish: | ||
name: Publish Python distribution to (Test)PyPI | ||
if: github.event_name != 'pull_request' | ||
needs: build | ||
runs-on: ubuntu-latest | ||
# Mandatory for publishing with a trusted publisher | ||
# c.f. https://docs.pypi.org/trusted-publishers/using-a-publisher/ | ||
permissions: | ||
id-token: write | ||
# Restrict to the environment set for the trusted publisher | ||
environment: | ||
name: publish-package | ||
|
||
steps: | ||
- name: Download distribution artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: dist-artifact | ||
path: dist | ||
|
||
- name: List all files | ||
run: ls -lh dist | ||
|
||
- name: Publish distribution 📦 to Test PyPI | ||
# Publish to TestPyPI on tag events of if manually triggered | ||
# Compare to 'true' string as booleans get turned into strings in the console | ||
if: >- | ||
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'scikit-hep/pyhf') | ||
|| (github.event_name == 'workflow_dispatch' && github.event.inputs.publish == 'true' && github.repository == 'scikit-hep/pyhf') | ||
uses: pypa/[email protected].5 | ||
uses: pypa/[email protected].8 | ||
with: | ||
password: ${{ secrets.test_pypi_password }} | ||
repository-url: https://test.pypi.org/legacy/ | ||
print-hash: true | ||
|
||
- name: Publish distribution 📦 to PyPI | ||
if: github.event_name == 'release' && github.event.action == 'published' && github.repository == 'scikit-hep/pyhf' | ||
uses: pypa/[email protected].5 | ||
uses: pypa/[email protected].8 | ||
with: | ||
password: ${{ secrets.pypi_password }} | ||
print-hash: 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
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,2 +1,5 @@ | ||
python -m pip install --upgrade '.[all]' | ||
python -m pip install altair | ||
python -m pip install --upgrade \ | ||
ipywidgets \ | ||
ipympl \ | ||
altair |
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
Oops, something went wrong.