.drone.yml 629 B

1234567891011121314151617181920212223242526272829303132
  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. - /root/.local/bin/poetry config virtualenvs.in-project true --local
  12. - /root/.local/bin/poetry install
  13. - name: test
  14. image: python
  15. commands:
  16. - export PATH=/root/.pip:$PATH
  17. - /root/.local/bin/poetry run inv test
  18. - name: typecheck
  19. image: python
  20. commands:
  21. - export PATH=/root/.pip:$PATH
  22. - /root/.local/bin/poetry run inv tc
  23. - name: format
  24. image: python
  25. commands:
  26. - export PATH=/root/.pip:$PATH
  27. - /root/.local/bin/poetry run inv checkfmt