Skip to content

Commit ee05859

Browse files
authored
Bump up CI, etc... (#51)
* Bump up CI, etc... * pytest auto and codecov token * update everything * LGPLv3+ why are you so annoying? * drop python 3.10, we're SPEC0 * try to fix versioning
1 parent 6bedbac commit ee05859

13 files changed

Lines changed: 66 additions & 2710 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ defaults:
1616
shell: bash -l {0}
1717

1818
env:
19-
CONDA_DEPS: "'MDAnalysis' MDAnalysisTests numpy 'scipy<1.8' pytest pytest-cov codecov"
19+
CONDA_DEPS: "'MDAnalysis' MDAnalysisTests numpy scipy pytest pytest-xdist pytest-cov codecov"
2020

2121
jobs:
2222
tests:
@@ -25,49 +25,54 @@ jobs:
2525
fail-fast: false
2626
matrix:
2727
os: [ubuntu-latest, macOS-latest]
28-
python-version: ["3.8", "3.9", "3.10"]
29-
28+
python-version: ["3.11", "3.12", "3.13"]
3029
env:
3130
CYTHON_TRACE_NOGIL: 1
3231
MPLBACKEND: agg
3332
GH_OS: ${{ matrix.os }}
3433

3534
steps:
36-
- uses: actions/checkout@v2
35+
- uses: actions/checkout@v5
36+
with:
37+
fetch-depth: 0
3738

38-
- name: setup_miniconda
39-
uses: conda-incubator/setup-miniconda@v2
39+
- name: "Setup Micromamba"
40+
uses: mamba-org/setup-micromamba@v2
4041
with:
41-
python-version: ${{ matrix.python-version }}
42-
auto-update-conda: true
43-
channels: conda-forge
44-
add-pip-as-python-dependency: true
45-
mamba-version: "*"
46-
architecture: x64
42+
environment-file: environment.yaml
43+
environment-name: mdrg
44+
create-args: >-
45+
python=${{ matrix.python-version }}
46+
init-shell: bash
4747

4848
- name: install_deps
4949
run: |
50-
mamba install ${{ env.CONDA_DEPS }}
50+
micromamba install ${{ env.CONDA_DEPS }}
5151
5252
- name: check_setup
5353
run: |
5454
echo ${GH_OS}
5555
which python
5656
which conda
5757
which pip
58-
conda info
58+
micromamba list
5959
6060
- name: install_mdrg
6161
run: |
62-
python setup.py develop --no-deps
62+
python -m pip install . --no-deps
63+
64+
- name: version
65+
run: |
66+
python -Ic "import MDRestraintsGenerator; print(MDRestraintsGenerator.__version__)"
6367
6468
- name: run_tests
6569
run: |
66-
pytest -v --cov=MDRestraintsGenerator --cov-report=xml MDRestraintsGenerator/tests/
70+
pytest -n auto -v --cov=MDRestraintsGenerator --cov-report=xml MDRestraintsGenerator/tests/
6771
6872
- name: codecov
69-
uses: codecov/codecov-action@v1
73+
uses: codecov/codecov-action@v5
7074
with:
7175
file: coverage.xml
76+
token: ${{ secrets.CODECOV_TOKEN }}
7277
fail_ci_if_error: True
7378
verbose: True

.lgtm.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

MDRestraintsGenerator/__init__.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@
22
MDRestraintsGenerator
33
A framework for generating restraints for MD simulations
44
"""
5-
6-
# Add imports here
7-
# from .restraints import *
8-
9-
# Handle versioneer
10-
from ._version import get_versions
11-
versions = get_versions()
12-
__version__ = versions['version']
13-
__git_revision__ = versions['full-revisionid']
14-
del get_versions, versions
5+
# Handle version
6+
from importlib.metadata import version
7+
__version__ = version("MDRestraintsGenerator")

0 commit comments

Comments
 (0)