Skip to content

Commit 11361ef

Browse files
authored
Merge pull request #838 from atmos-cloud-sim-uj/slayoo-patch-10
introducing PyPartMC as test-time dependency
2 parents df9c8bf + 29b6b55 commit 11361ef

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

.github/workflows/pylint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ jobs:
2727
- name: Analysing the code with pylint
2828
run: |
2929
# TODO #682
30-
pylint --disable=fixme,invalid-name,missing-function-docstring,missing-class-docstring,too-many-locals,too-many-instance-attributes,too-few-public-methods,protected-access,too-many-statements,duplicate-code,C0330,C0326 $(git ls-files '*.py')
30+
pylint --unsafe-load-any-extension=y --disable=fixme,invalid-name,missing-function-docstring,missing-class-docstring,too-many-locals,too-many-instance-attributes,too-few-public-methods,protected-access,too-many-statements,duplicate-code,C0330,C0326 $(git ls-files '*.py')

test-time-requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ ghapi
44
pytest
55

66
# note: if cloning both PySDM and PySDM examples, consider "pip install -e"
7-
PySDM-examples @ git+https://github.com/sajjadazimi/PySDM-examples@53af504#egg=PySDM-examples
7+
PySDM-examples @ git+https://github.com/atmos-cloud-sim-uj/PySDM-examples@4b1fed8#egg=PySDM-examples
88
PyMPDATA @ git+https://github.com/atmos-cloud-sim-uj/PyMPDATA@e7b73a7#egg=PyMPDATA
9+
PyPartMC==0.0.1; sys_platform == 'linux'

tests/smoke_tests/partmc/__init__.py

Whitespace-only changes.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring
2+
3+
import sys
4+
5+
import pytest
6+
7+
if sys.platform == "linux":
8+
import PyPartMC
9+
10+
11+
@pytest.mark.skipif(sys.platform != "linux", reason="binary package availability")
12+
def test_partmc():
13+
print(PyPartMC.__version__)

0 commit comments

Comments
 (0)