.drone.yml 728 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. kind: pipeline
  2. name: default
  3. workspace:
  4. path: /root
  5. steps:
  6. - name: setup
  7. image: python
  8. environment:
  9. PIP_TARGET: '/root/.pip'
  10. commands:
  11. - pip install poetry
  12. - pip install invoke
  13. - export PATH=/root/.pip:$PATH
  14. - poetry config virtualenvs.in-project true --local
  15. - poetry install
  16. - name: test
  17. image: python
  18. environment:
  19. PIP_TARGET: '/root/.pip'
  20. commands:
  21. - export PATH=/root/.pip:$PATH
  22. - inv test
  23. - name: typecheck
  24. image: python
  25. environment:
  26. PIP_TARGET: '/root/.pip'
  27. commands:
  28. - export PATH=/root/.pip:$PATH
  29. - poetry run inv tc
  30. - name: format
  31. image: python
  32. environment:
  33. PIP_TARGET: '/root/.pip'
  34. commands:
  35. - export PATH=/root/.pip:$PATH
  36. - poetry run inv checkfmt