.drone.yml 586 B

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