acceptance_run.yml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. name: Acceptance-run
  2. on:
  3. schedule:
  4. - cron: "0 0 * * *" # At 00:00 every day
  5. workflow_dispatch:
  6. inputs:
  7. build_preset:
  8. type: choice
  9. default: "relwithdebinfo"
  10. description: "Build preset"
  11. options:
  12. - debug
  13. - release
  14. - relwithdebinfo
  15. - release-asan
  16. - release-tsan
  17. - release-msan
  18. runner_label:
  19. type: string
  20. default: "auto-provisioned"
  21. description: "runner label"
  22. put_build_results_to_cache:
  23. type: boolean
  24. default: true
  25. commit_sha:
  26. type: string
  27. default: ""
  28. jobs:
  29. main:
  30. name: Build and test ${{ inputs.build_preset }}
  31. runs-on: [ self-hosted, "${{ inputs.runner_label }}", "${{ format('build-preset-{0}', inputs.build_preset) }}" ]
  32. steps:
  33. - name: Checkout
  34. uses: actions/checkout@v3
  35. with:
  36. ref: ${{ inputs.commit_sha }}
  37. - name: Build and test
  38. uses: ./.github/actions/build_and_test_ya
  39. with:
  40. build_preset: ${{ inputs.build_preset }}
  41. build_target: "ydb/tests/acceptance"
  42. increment: false
  43. run_tests: true
  44. test_size: small,medium,large
  45. test_type: unittest,py3test,py2test,pytest
  46. test_threads: 1
  47. put_build_results_to_cache: ${{ inputs.put_build_results_to_cache }}
  48. secs: ${{ format('{{"TESTMO_TOKEN":"{0}","AWS_KEY_ID":"{1}","AWS_KEY_VALUE":"{2}","REMOTE_CACHE_USERNAME":"{3}","REMOTE_CACHE_PASSWORD":"{4}"}}',
  49. secrets.TESTMO_TOKEN, secrets.AWS_KEY_ID, secrets.AWS_KEY_VALUE, secrets.REMOTE_CACHE_USERNAME, secrets.REMOTE_CACHE_PASSWORD ) }}
  50. vars: ${{ format('{{"AWS_BUCKET":"{0}","AWS_ENDPOINT":"{1}","REMOTE_CACHE_URL":"{2}","TESTMO_URL":"{3}","TESTMO_PROJECT_ID":"{4}"}}',
  51. vars.AWS_BUCKET, vars.AWS_ENDPOINT, vars.REMOTE_CACHE_URL_YA, vars.TESTMO_URL, vars.TESTMO_PROJECT_ID ) }}