.drone.yml 596 B

12345678910111213141516171819202122232425262728293031323334353637
  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. - poetry config virtualenvs.in-project true --local
  14. - poetry install
  15. - name: test
  16. image: python
  17. environment:
  18. PIP_TARGET: '/root/.pip'
  19. commands:
  20. - inv test
  21. - name: typecheck
  22. image: python
  23. environment:
  24. PIP_TARGET: '/root/.pip'
  25. commands:
  26. - poetry run inv tc
  27. - name: format
  28. image: python
  29. environment:
  30. PIP_TARGET: '/root/.pip'
  31. commands:
  32. - poetry run inv checkfmt