Skip to content

Commit 84fb3b4

Browse files
authored
update gh-ci.yaml (#18)
* update gh-ci.yaml - bump actions - add CODECOV token - add missing tests for distribution * only test latest release in GH actions
1 parent 9824612 commit 84fb3b4

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

.github/workflows/gh-ci.yaml

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ jobs:
2929
stable-python-version: ${{ steps.get-compatible-python.outputs.stable-python }}
3030
python-matrix: ${{ steps.get-compatible-python.outputs.python-versions }}
3131
steps:
32-
- uses: actions/setup-python@v5.3.0
32+
- uses: actions/setup-python@v5
3333
with:
34-
python-version: "3.11"
34+
python-version: "3.12"
3535

3636
- id: get-compatible-python
3737
uses: MDAnalysis/mdanalysis-compatible-python@main
@@ -49,13 +49,9 @@ jobs:
4949
# os: [macOS-latest, ubuntu-latest, windows-latest]
5050
os: [macOS-latest, ubuntu-latest]
5151
python-version: ${{ fromJSON(needs.environment-config.outputs.python-matrix) }}
52-
# python-version: ["3.10", "3.11", "3.12"]
53-
mdanalysis-version: ["latest", "develop"]
54-
exclude:
55-
- python-version: "3.9"
56-
# latest MDA requires python <= 3.13
57-
- python-version: "3.13"
58-
- mdanalysis-version: "develop"
52+
# mdanalysis-version: ["latest", "develop"]
53+
# only test latest released MDA to reduce CI (possibly re-enable later)
54+
mdanalysis-version: ["latest"]
5955

6056
steps:
6157
- uses: actions/checkout@v4
@@ -75,9 +71,9 @@ jobs:
7571
environment-file: devtools/conda-envs/test_env.yaml
7672
add-pip-as-python-dependency: true
7773

78-
miniforge-variant: Miniforge3
74+
miniforge-version: "latest"
7975
use-mamba: true
80-
channels: conda-forge, defaults
76+
channels: conda-forge
8177

8278
activate-environment: basicrta-test
8379
auto-update-conda: true
@@ -119,6 +115,7 @@ jobs:
119115
files: coverage.xml
120116
name: codecov-${{ matrix.os }}-py${{ matrix.python-version }}
121117
verbose: True
118+
token: ${{ secrets.CODECOV_TOKEN }}
122119

123120

124121
pylint_check:
@@ -130,10 +127,9 @@ jobs:
130127
- uses: actions/checkout@v4
131128

132129
- name: Set up Python
133-
uses: actions/setup-python@v5.3.0
130+
uses: actions/setup-python@v5
134131
with:
135132
python-version: ${{ needs.environment-config.outputs.stable-python-version }}
136-
#python-version: "3.12"
137133
- name: Install Pylint
138134
run: |
139135
which pip
@@ -156,11 +152,9 @@ jobs:
156152
- uses: actions/checkout@v4
157153

158154
- name: Set up Python ${{ needs.environment-config.outputs.stable-python-version }}
159-
# - name: Set up Python
160-
uses: actions/[email protected]
155+
uses: actions/setup-python@v5
161156
with:
162157
python-version: ${{ needs.environment-config.outputs.stable-python-version }}
163-
#python-version: "3.12"
164158

165159
- name: Install dependencies
166160
run: |
@@ -175,4 +169,6 @@ jobs:
175169
DISTRIBUTION=$(ls -t1 dist/basicrta-*.tar.gz | head -n 1)
176170
test -n "${DISTRIBUTION}" || { echo "no distribution dist/basicrta-*.tar.gz found"; exit 1; }
177171
echo "twine check $DISTRIBUTION"
172+
twine check $DISTRIBUTION
173+
echo "twine check $DISTRIBUTION"
178174
twine check $DISTRIBUTION

0 commit comments

Comments
 (0)