Newer
Older
# ------------------------------ Static analysis ------------------------------
.static_analysis_base:
stage: Static Analysis
allow_failure: true
flake8:
extends: .static_analysis_base
script:
- pip install pylint appdirs requests pystac pystac-client pydantic urllib3 qrcode
- pylint $PWD/dinamis_sdk --disable=W0718,W0603,R0914,C0415 --ignore=examples
pydocstyle:
extends: .static_analysis_base
script:
- pip install pydocstyle
- pydocstyle $PWD/dinamis_sdk
# ------------------------------- Install -------------------------------------
# --------------------------------- Doc ---------------------------------------
# --------------------------------- Test --------------------------------------
Tests:
stage: Test
before_script:
- pip install .
- pip install pystac-client
script:
- python tests/test_spot-6-7-drs.py
- python tests/test_super-s2.py
# --------------------------------- Ship --------------------------------------
pypi:
stage: Ship
only:
- main
before_script:
- python3 -m pip install --upgrade build twine
script:
- python3 -m build
after_script:
- python3 -m twine upload --repository-url https://upload.pypi.org/legacy/ --non-interactive --verbose -u __token__ -p $pypi_token dist/*