build_and_test_ya_provisioned.yml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. name: Ya-Build-and-Test-Provisioned
  2. on:
  3. workflow_dispatch:
  4. inputs:
  5. build_target:
  6. type: string
  7. default: "ydb/"
  8. description: "limit build and test to specific target"
  9. build_preset:
  10. type: choice
  11. default: "relwithdebinfo"
  12. description: "Build preset"
  13. options:
  14. - relwithdebinfo
  15. - release-asan
  16. - release-tsan
  17. test_size:
  18. type: choice
  19. default: "small,medium,large"
  20. description: "test size to run"
  21. options:
  22. - small
  23. - small,medium
  24. - small,medium,large
  25. test_type:
  26. type: choice
  27. default: "unittest,py3test,py2test,pytest"
  28. description: "type of tests to run"
  29. options:
  30. - unittest
  31. - py3test,py2test,pytest
  32. - unittest,py3test,py2test,pytest
  33. run_build:
  34. type: boolean
  35. default: true
  36. description: "run build"
  37. run_tests:
  38. type: boolean
  39. default: true
  40. description: "run tests"
  41. test_threads:
  42. type: string
  43. default: "28"
  44. description: "Test threads count"
  45. link_threads:
  46. type: string
  47. default: "8"
  48. description: "link threads count"
  49. runner_label:
  50. type: string
  51. default: "ya-make"
  52. description: "runner label"
  53. cache_tests:
  54. type: boolean
  55. default: false
  56. description: "Use cache for tests"
  57. workflow_call:
  58. inputs:
  59. build_target:
  60. type: string
  61. default: "ydb/"
  62. build_preset:
  63. type: string
  64. default: "relwithdebinfo"
  65. test_size:
  66. type: string
  67. default: "small,medium,large"
  68. test_type:
  69. type: string
  70. default: "unittest,py3test,py2test,pytest"
  71. run_build:
  72. type: boolean
  73. default: true
  74. run_tests:
  75. type: boolean
  76. default: true
  77. test_threads:
  78. type: string
  79. default: 28
  80. description: "Test threads count"
  81. link_threads:
  82. type: string
  83. default: 8
  84. description: "link threads count"
  85. runner_label:
  86. type: string
  87. default: "ya-make"
  88. cache_tests:
  89. type: boolean
  90. default: false
  91. description: "Use cache for tests"
  92. jobs:
  93. main:
  94. uses: ./.github/workflows/build_and_test_ya.yml
  95. with:
  96. runner_kind: provisioned
  97. runner_label: ${{ inputs.runner_label }}
  98. build_target: ${{ inputs.build_target }}
  99. build_preset: ${{ inputs.build_preset }}
  100. run_build: ${{ inputs.run_build }}
  101. run_tests: ${{ inputs.run_tests }}
  102. test_size: ${{ inputs.test_size }}
  103. test_type: ${{ inputs.test_type }}
  104. link_threads: ${{ inputs.link_threads }}
  105. test_threads: ${{ inputs.test_threads }}
  106. cache_tests: ${{ inputs.cache_tests }}
  107. secrets: inherit