-
Notifications
You must be signed in to change notification settings - Fork 0
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 #18 from SpeysideHEP/update-v0.2
Adapt to the latest spey version
- Loading branch information
Showing
11 changed files
with
126 additions
and
40 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,81 @@ | ||
name: Check/Build/Deploy | ||
|
||
on: | ||
release: | ||
types: [published] | ||
push: | ||
branches: ["releases/**"] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
# check: | ||
# name: OS ${{ matrix.os }}, Python ${{ matrix.python-version }} | ||
# runs-on: ${{ matrix.os }} | ||
|
||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | ||
# os: [ubuntu-latest, macos-latest] | ||
|
||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - name: Set up Python ${{ matrix.python-version }} | ||
# uses: actions/setup-python@v3 | ||
# with: | ||
# python-version: ${{ matrix.python-version }} | ||
# - name: Install dependencies | ||
# run: | | ||
# python -m pip install --upgrade pip | ||
# python -m pip install pytest pytest-cov | ||
# python -m pip install -e . | ||
# - name: Test with pytest | ||
# run: | | ||
# python -c 'import spey;spey.about()' | ||
# pytest --cov=spey tests/*py #--cov-fail-under 99 | ||
|
||
build: | ||
name: Build wheel | ||
runs-on: ubuntu-latest | ||
# needs: check | ||
steps: | ||
- name: Checkout git repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build Spey wheel | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install wheel | ||
python setup.py bdist_wheel | ||
- name: Upload wheels as artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: wheel | ||
path: ./dist/*.whl | ||
|
||
deploy: | ||
if: ${{ !github.event.release.prerelease && !contains(github.ref, '-rc') && !contains(github.ref, '-beta') && !contains(github.ref, '-alpha') }} | ||
runs-on: ubuntu-latest | ||
needs: build | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/project/spey-pyhf/ | ||
permissions: | ||
id-token: write | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
pattern: wheel | ||
merge-multiple: true | ||
path: dist | ||
|
||
- name: Debug | ||
run: ls -l dist | ||
|
||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@v1.4.2 | ||
with: | ||
user: ${{ secrets.TWINE_USERNAME }} | ||
password: ${{ secrets.TWINE_PSSWRD }} | ||
verbose: 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
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,3 +1,3 @@ | ||
"""Version of the spey - pyhf plugin""" | ||
|
||
__version__ = "0.1.10" | ||
__version__ = "0.2.0-beta" |
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