55 branches : [main]
66 pull_request :
77 schedule :
8- - cron : ' 0 8 * * 1'
9-
8+ - cron : ' 0 8 * * 1-5'
9+ workflow_dispatch :
10+
1011jobs :
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 )
0 commit comments