-
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 branch 'sparkx_devel' into sass/BulkObservables
- Loading branch information
Showing
28 changed files
with
563 additions
and
363 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 |
---|---|---|
|
@@ -5,22 +5,20 @@ on: | |
branches: | ||
- main | ||
- sparkx_devel | ||
types: | ||
- closed # Trigger when the PR is closed (includes merging) | ||
|
||
jobs: | ||
code-formatting: | ||
if: github.event.pull_request.merged == true | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Checkout PR branch | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.sha }} # Check out the exact commit of the merged PR | ||
ref: ${{ github.head_ref }} | ||
fetch-depth: 0 # Ensures full history is available | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
|
||
|
@@ -29,22 +27,25 @@ jobs: | |
python -m pip install --upgrade pip | ||
pip install black==24.8.0 | ||
- name: Format code | ||
- name: Run black to check formatting | ||
id: black-check | ||
run: | | ||
black --line-length 80 src/sparkx tests/ | ||
black --check --line-length 80 src/sparkx tests/ | ||
continue-on-error: true | ||
|
||
- name: Commit changes | ||
run: | | ||
git config --local user.name "GitHub Action" | ||
git config --local user.email "[email protected]" | ||
git add src/sparkx tests/ | ||
git commit -m "Automatically format code using black" || echo "No changes to commit" | ||
- name: Capture formatting status | ||
if: ${{ steps.black-check.outcome == 'failure' }} | ||
run: echo "needs_formatting=true" >> $GITHUB_ENV | ||
|
||
- name: Push changes | ||
run: | | ||
git push origin ${{ github.head_ref }} | ||
- name: Format code with black | ||
if: env.needs_formatting == 'true' | ||
run: black --line-length 80 src/sparkx tests/ | ||
|
||
- name: Run format test again | ||
- name: Push formatted changes | ||
if: env.needs_formatting == 'true' | ||
run: | | ||
# Add your test commands here | ||
black --check --line-length 80 src/sparkx tests/ | ||
git config --global user.name "github-actions[bot]" | ||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
git add src/sparkx tests/ | ||
git commit -m "Auto-format code with black" | ||
git push origin ${{ github.head_ref }} |
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 |
---|---|---|
|
@@ -6,9 +6,11 @@ build-backend = "setuptools.build_meta" | |
name = "sparkx" | ||
version = "2.0.0" | ||
authors = [ | ||
{ name="Lucas Constantin", email="[email protected]"}, | ||
{ name="Niklas Götz", email="[email protected]"}, | ||
{ name="Renata Krupczak", email="[email protected]"}, | ||
{ name="Hendrik Roch", email="[email protected]" }, | ||
{ name="Carl Rosenkvist", email="[email protected]"}, | ||
{ name="Nils Sass", email="[email protected]" } | ||
] | ||
description = "Software Package for Analyzing Relativistic Kinematics in Collision eXperiments" | ||
|
@@ -25,11 +27,10 @@ classifiers = [ | |
] | ||
|
||
dependencies = [ | ||
"particle==0.23.0", | ||
"particle>=0.23.0", | ||
"numpy>=1.23.5", | ||
"scipy>=1.10.1", | ||
"abc-property==1.0", | ||
"fastjet==3.4.1.3", | ||
"fastjet>=3.4.2.1", | ||
"matplotlib>=3.7.1" | ||
] | ||
|
||
|
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 |
---|---|---|
|
@@ -5,18 +5,17 @@ | |
packages=find_packages(where='src'), | ||
package_dir={'': 'src'}, | ||
install_requires=[ | ||
"particle==0.23.0", | ||
"particle>=0.23.0", | ||
"numpy>=1.23.5", | ||
"scipy>=1.10.1", | ||
"abc-property==1.0", | ||
"fastjet==3.4.1.3", | ||
"fastjet>=3.4.2.1", | ||
"matplotlib>=3.7.1", | ||
], | ||
version='2.0.0', | ||
description='Software Package for Analyzing Relativistic Kinematics in Collision eXperiments', | ||
long_description=open("README.md").read(), | ||
long_description_content_type="text/markdown", | ||
author='Niklas Götz, Renata Krupczak, Hendrik Roch, Nils Sass', | ||
author='Lucas Constantin, Niklas Götz, Renata Krupczak, Hendrik Roch, Carl Rosenkvist, Nils Sass', | ||
author_email="[email protected], [email protected], [email protected]", | ||
url="https://smash-transport.github.io/sparkx/", | ||
download_url="https://github.com/smash-transport/sparkx", | ||
|
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.