.drone.yml 526 B

12345678910111213141516171819202122232425262728293031
  1. kind: pipeline
  2. name: default
  3. steps:
  4. - name: setup
  5. image: python
  6. commands:
  7. - python3 -m virtualenv .
  8. - source ./bin/activate
  9. - pip install poetry
  10. - pip install invoke
  11. - poetry config virtualenvs.in-project true --local
  12. - poetry install
  13. - name: test
  14. image: python
  15. commands:
  16. - source ./bin/activate
  17. - inv test
  18. - name: typecheck
  19. image: python
  20. commands:
  21. - source ./bin/activate
  22. - poetry run inv tc
  23. - name: format
  24. image: python
  25. commands:
  26. - source ./bin/activate
  27. - poetry run inv checkfmt