Per subpackage tests
@@ -30,10 +30,8 @@ outputs:
- cloudpathlib
commands:
- pip check
- - pytest cloudpathlib
requires:
- pip
- - pytest
- name: cloudpathlib-azure
@@ -43,8 +41,16 @@ outputs:
- pip
run:
- python
- - {{ pin_subpackage('cloudpathlib-base', exact=True) }}
- azure-storage-blob >=12
+ - {{ pin_subpackage('cloudpathlib-base', exact=True) }}
+ test:
+ imports:
+ - cloudpathlib
+ commands:
+ - pip check
+ - python -c "import cloudpathlib; from cloudpathlib.cloudpath import implementation_registry; implementation_registry['azure'].validate_completeness()"
+ requires:
+ - pip
- name: cloudpathlib-s3
@@ -56,6 +62,14 @@ outputs:
- python
- boto3
- {{ pin_subpackage('cloudpathlib-base', exact=True) }}
+ test:
+ imports:
+ - cloudpathlib
+ commands:
+ - pip check
+ - python -c "import cloudpathlib; from cloudpathlib.cloudpath import implementation_registry; implementation_registry['s3'].validate_completeness()"
+ requires:
+ - pip
- name: cloudpathlib
requirements:
@@ -66,6 +80,16 @@ outputs:
- python
- {{ pin_subpackage('cloudpathlib-azure', exact=True) }}
- {{ pin_subpackage('cloudpathlib-s3', exact=True) }}
+ test:
+ imports:
+ - cloudpathlib
+ commands:
+ - pip check
+ - python -c "from cloudpathlib.cloudpath import implementation_registry; implementation_registry['azure'].validate_completeness()"
+ - python -c "from cloudpathlib.cloudpath import implementation_registry; implementation_registry['s3'].validate_completeness()"
+ requires:
+ - pip
+
