File tree Expand file tree Collapse file tree 2 files changed +40
-10
lines changed Expand file tree Collapse file tree 2 files changed +40
-10
lines changed Original file line number Diff line number Diff line change @@ -50,20 +50,15 @@ jobs:
50
50
auto-update-conda : false
51
51
auto-activate-base : false
52
52
use-only-tar-bz2 : true # IMPORTANT: This needs to be set for caching to work properly!
53
-
54
- - name : Install MDSAPT package
55
- # conda setup requires this special shell
53
+
54
+ - name : Type-check
56
55
shell : bash -l {0}
57
56
run : |
58
- python -m pip install . --no-deps
59
- conda list
57
+ pyright mdsapt
60
58
61
- # TODO: possibly integrate this step with meta.yml?
62
59
- name : Run tests
63
- # conda setup requires this special shell
64
60
shell : bash -l {0}
65
61
run : |
66
- pip install pytest-cov
67
62
pytest -v ./mdsapt --cov=mdsapt --cov-report=xml
68
63
69
64
- name : Upload CodeCov
73
68
flags : unittests
74
69
name : codecov-${{ matrix.os }}-py${{ matrix.python-version }}
75
70
71
+ - name : Install MDSAPT package
72
+ shell : bash -l {0}
73
+ run : |
74
+ python -m pip install . --no-deps
75
+ conda list
76
+
76
77
package :
77
78
name : Packaging py${{ matrix.python-version }}/${{ matrix.os }}
78
79
runs-on : ${{ matrix.os }}
@@ -162,3 +163,23 @@ jobs:
162
163
shell : bash -l {0}
163
164
run : >
164
165
python3 -c "import mdsapt"
166
+
167
+ lint-and-format :
168
+ # These checks are much faster and don't actually need to install any packages.
169
+ name : Run fast checks over code
170
+ runs-on : ubuntu-latest
171
+
172
+ steps :
173
+ - uses : actions/checkout@v2
174
+
175
+ - name : Install formatter and linter
176
+ run : |
177
+ pip install autopep8 pylint
178
+
179
+ - name : Lint code
180
+ run : |
181
+ pylint mdsapt
182
+
183
+ - name : Ensure formatting
184
+ run : |
185
+ autopep8 -r mdsapt --diff --exit-code
Original file line number Diff line number Diff line change @@ -6,8 +6,7 @@ channels:
6
6
- conda-forge
7
7
- defaults
8
8
dependencies :
9
- - mdanalysis>=2.0.0, <2.1
10
- - nglview>=3.0.3, <3.1
9
+ - mdanalysis
11
10
- numpy
12
11
- openmm
13
12
- pandas
@@ -17,3 +16,13 @@ dependencies:
17
16
- pytest-cov
18
17
- pyyaml
19
18
- rdkit
19
+
20
+ # Optional deps
21
+ - nglview
22
+
23
+ # Development deps
24
+ - autopep8
25
+ - pyright # type-checking
26
+ - pylint
27
+ - pytest
28
+ - pytest-cov
You can’t perform that action at this time.
0 commit comments