Skip to content

Commit 12c4323

Browse files
committed
Merge remote-tracking branch 'origin/main' into 173-refactor-levels
2 parents c01e785 + e6b35cb commit 12c4323

20 files changed

Lines changed: 2220 additions & 1092 deletions

‎.github/renovate.json‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"extends": [
3+
"config:best-practices",
4+
":pinAllExceptPeerDependencies",
5+
":dependencyDashboard",
6+
"group:monorepos",
7+
"group:recommended"
8+
],
9+
"rangeStrategy": "pin",
10+
"schedule": ["* 8 * * 1-5"],
11+
"labels": ["dependencies"],
12+
"lockFileMaintenance": {
13+
"enabled": true
14+
},
15+
"packageRules": [
16+
{
17+
"matchUpdateTypes": ["minor", "patch"],
18+
"automerge": false
19+
}
20+
]
21+
}
Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
2-
title: CI Failure: MDAnalysis v{{ env.MDA_VERSION }} / Python {{ env.PYTHON_VERSION }}
3-
labels: CI Failure, MDAnalysis Compatibility
2+
title: "CI Failure: MDAnalysis v{{ env.MDA_VERSION }} / Python {{ env.PYTHON_VERSION }}"
3+
labels:
4+
- "CI Failure"
5+
- "MDAnalysis Compatibility"
46
---
57

6-
### Automated MDAnalysis Compatibility Test Failure
7-
8-
**MDAnalysis version**: `{{ env.MDA_VERSION }}`
9-
**Python version**: `{{ env.PYTHON_VERSION }}`
10-
**Workflow Run**: [Run #{{ env.RUN_NUMBER }}]({{ env.RUN_URL }})
8+
Automated MDAnalysis Compatibility Test Failure
9+
MDAnalysis version: {{ env.MDA_VERSION }}
10+
Python version: {{ env.PYTHON_VERSION }}
11+
Workflow Run: [Run #{{ env.RUN_NUMBER }}]({{ env.RUN_URL }})
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: MDAnalysis Compatibility
2+
3+
on:
4+
schedule:
5+
- cron: '0 8 * * 1' # Weekly Monday checks
6+
workflow_dispatch:
7+
8+
jobs:
9+
mdanalysis-compatibility:
10+
name: MDAnalysis Compatibility Tests
11+
runs-on: ${{ matrix.os }}
12+
13+
strategy:
14+
matrix:
15+
os: [ubuntu-24.04, windows-2025, macos-15]
16+
python-version: ["3.11", "3.12", "3.13", "3.14"]
17+
mdanalysis-version: ["2.10.0"]
18+
19+
steps:
20+
- name: Checkout repo
21+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6
22+
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
28+
- name: Install dependencies with MDAnalysis ${{ matrix.mdanalysis-version }}
29+
run: |
30+
pip install --upgrade pip
31+
pip install -e .[testing]
32+
pip install "MDAnalysis==${{ matrix.mdanalysis-version }}"
33+
34+
- name: Run compatibility tests
35+
run: pytest --cov CodeEntropy --cov-report=term-missing --cov-append
36+
37+
- name: Create Issue on Failure
38+
if: failure()
39+
uses: JasonEtco/create-an-issue@1b14a70e4d8dc185e5cc76d3bec9eab20257b2c5 # v2
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
PYTHON_VERSION: ${{ matrix.python-version }}
43+
MDA_VERSION: ${{ matrix.mdanalysis-version }}
44+
RUN_NUMBER: ${{ github.run_number }}
45+
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
46+
with:
47+
filename: .github/workflows/mdanalysis-compatibility-failure.md
48+
update_existing: true
49+
search_existing: open

‎.github/workflows/project-ci.yaml‎

Lines changed: 13 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ on:
55
branches: [main]
66
pull_request:
77
schedule:
8-
- cron: '0 8 * * 1'
9-
8+
- cron: '0 8 * * 1-5'
9+
workflow_dispatch:
10+
1011
jobs:
1112
tests:
1213
name: Run tests
@@ -17,10 +18,10 @@ jobs:
1718
python-version: ["3.11", "3.12", "3.13", "3.14"]
1819
steps:
1920
- name: Checkout repo
20-
uses: actions/checkout@v5.0.0
21+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6
2122

2223
- name: Set up Python ${{ matrix.python-version }}
23-
uses: actions/setup-python@v6.0.0
24+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
2425
with:
2526
python-version: ${{ matrix.python-version }}
2627

@@ -31,19 +32,19 @@ jobs:
3132
run: pytest --cov CodeEntropy --cov-report term-missing --cov-append .
3233

3334
- name: Coveralls GitHub Action
34-
uses: coverallsapp/github-action@v2.3.6
35+
uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2.3.7
3536
with:
3637
github-token: ${{ secrets.GITHUB_TOKEN }}
3738

3839
docs:
3940
runs-on: ubuntu-latest
4041
timeout-minutes: 15
4142
steps:
42-
- uses: actions/checkout@v5.0.0
43+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6
4344
- name: Set up Python 3.14
44-
uses: actions/setup-python@v6.0.0
45+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
4546
with:
46-
python-version: 3.14
47+
python-version: 3.14.0
4748
- name: Install python dependencies
4849
run: |
4950
pip install --upgrade pip
@@ -55,61 +56,16 @@ jobs:
5556
runs-on: ubuntu-24.04
5657
timeout-minutes: 15
5758
steps:
58-
- uses: actions/checkout@v5.0.0
59+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6
5960
- name: Set up Python 3.14
60-
uses: actions/setup-python@v6.0.0
61+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
6162
with:
62-
python-version: 3.14
63+
python-version: 3.14.0
6364
- name: Install python dependencies
6465
run: |
6566
pip install --upgrade pip
6667
pip install -e .[pre-commit,docs,testing]
6768
- name: Run pre-commit
6869
run: |
6970
pre-commit install
70-
pre-commit run --all-files || ( git status --short ; git diff ; exit 1 )
71-
72-
mdanalysis-compatibility:
73-
if: github.event_name == 'schedule'
74-
runs-on: ubuntu-24.04
75-
timeout-minutes: 15
76-
strategy:
77-
matrix:
78-
python-version: ["3.11", "3.12", "3.13", "3.14"]
79-
mdanalysis-version: ["2.9.0", "latest"]
80-
name: MDAnalysis Compatibility Tests
81-
steps:
82-
- name: Checkout repo
83-
uses: actions/checkout@v5.0.0
84-
85-
- name: Set up Python ${{ matrix.python-version }}
86-
uses: actions/setup-python@v6.0.0
87-
with:
88-
python-version: ${{ matrix.python-version }}
89-
90-
- name: Install dependencies with MDAnalysis ${{ matrix.mdanalysis-version }}
91-
run: |
92-
pip install --upgrade pip
93-
pip install -e .[testing]
94-
if [ "${{ matrix.mdanalysis-version }}" = "latest" ]; then
95-
pip install MDAnalysis
96-
else
97-
pip install "MDAnalysis==${{ matrix.mdanalysis-version }}"
98-
fi
99-
100-
- name: Run compatibility tests
101-
run: pytest --cov CodeEntropy --cov-report=term-missing --cov-append
102-
103-
- name: Create Issue on Failure
104-
if: failure()
105-
uses: JasonEtco/create-an-issue@v2
106-
env:
107-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
108-
PYTHON_VERSION: ${{ matrix.python-version }}
109-
MDA_VERSION: ${{ matrix.mdanalysis-version }}
110-
RUN_NUMBER: ${{ github.run_number }}
111-
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
112-
with:
113-
filename: .github/workflows/mdanalysis-compatibility-failure.md
114-
update_existing: true
115-
search_existing: open
71+
pre-commit run --all-files || ( git status --short ; git diff ; exit 1 )

‎.github/workflows/release.yaml‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818
steps:
1919
- name: Checkout repository
2020
id: repo
21-
uses: actions/checkout@v5.0.0
21+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6
2222

2323
- name: Set up Python
24-
uses: actions/setup-python@v6.0.0
24+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
2525
with:
26-
python-version: 3.14
26+
python-version: 3.14.0
2727

2828
- name: Get latest release from pip
2929
id: latestreleased
@@ -46,7 +46,7 @@ jobs:
4646
steps:
4747

4848
- name: checkout
49-
uses: actions/checkout@v5.0.0
49+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6
5050

5151
- name: Change version in repo and CITATION.cff
5252
run: |
@@ -61,7 +61,7 @@ jobs:
6161
6262
- name: send PR
6363
id: pr_id
64-
uses: peter-evans/create-pull-request@v7.0.8
64+
uses: peter-evans/create-pull-request@84ae59a2cdc2258d6fa0732dd66352dddae2a412 # v7.0.9
6565
with:
6666
commit-message: Update version to ${{ github.event.inputs.version }}
6767
branch: version-update
@@ -78,7 +78,7 @@ jobs:
7878
draft: false
7979

8080
- name: auto approve review
81-
uses: hmarr/auto-approve-action@v4.0.0
81+
uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 # v4.0.0
8282
with:
8383
pull-request-number: ${{ steps.pr_id.outputs.pull-request-number }}
8484
review-message: "Auto approved version bump PR"
@@ -95,7 +95,7 @@ jobs:
9595
runs-on: ubuntu-24.04
9696
steps:
9797
- name: Checkout repository
98-
uses: actions/checkout@v5.0.0
98+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6
9999
with:
100100
ref: main
101101

@@ -113,7 +113,7 @@ jobs:
113113
steps:
114114

115115
- name: create release
116-
uses: softprops/action-gh-release@v2.4.2
116+
uses: softprops/action-gh-release@5be0e66d93ac7ed76da52eca8bb058f665c3a5fe # v2.4.2
117117
with:
118118
name: v${{ github.event.inputs.version }}
119119
generate_release_notes: true
@@ -126,14 +126,14 @@ jobs:
126126
steps:
127127

128128
- name: checkout
129-
uses: actions/checkout@v5.0.0
129+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6
130130
with:
131131
ref: main
132132

133133
- name: Set up Python
134-
uses: actions/setup-python@v6.0.0
134+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
135135
with:
136-
python-version: 3.14
136+
python-version: 3.14.0
137137

138138
- name: Install flit
139139
run: |

‎CITATION.cff‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,5 @@ keywords:
7676
- biomolecular simulations
7777
- protein flexibility
7878
license: MIT
79-
version: 1.0.4
80-
date-released: '2025-11-10'
79+
version: 1.0.6
80+
date-released: '2025-11-27'

‎CodeEntropy/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
and statistical mechanics.
99
"""
1010

11-
__version__ = "1.0.4"
11+
__version__ = "1.0.6"

‎CodeEntropy/config/arg_config_manager.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"kcal_force_units": {
2828
"type": bool,
2929
"default": False,
30-
"help": "Set this to True if you have a separate force file with nonSI units.",
30+
"help": "Set this to True if you have a separate force file with kcal units.",
3131
},
3232
"selection_string": {
3333
"type": str,
@@ -268,5 +268,5 @@ def _check_input_force_partitioning(self, args):
268268
if args.force_partitioning != default_value:
269269
logger.warning(
270270
f"'force_partitioning' is set to {args.force_partitioning},"
271-
" which differs from the default ({default_value})."
271+
f" which differs from the default {default_value}."
272272
)

0 commit comments

Comments
 (0)