Prettify python stacks experimental #2562
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Postcommit checks | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - users/MikailBag/ci-remote-build | |
| permissions: {} # disable all by default | |
| jobs: | |
| run-build: | |
| permissions: | |
| id-token: write | |
| contents: read | |
| runs-on: [self-hosted, auto-provisioned] | |
| name: Postcommit checks | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| path: code | |
| # TODO: replace with WLIF | |
| - name: Login to YC | |
| id: login | |
| uses: yc-actions/yc-iam-token@v1 | |
| with: | |
| yc-key-id: ${{ secrets.YC_KEY_ID }} | |
| yc-service-account-id: ${{ secrets.CLOUD_SERVICE_ACCOUNT_ID }} | |
| yc-private-key: ${{ secrets.YC_SA_PRIVATE_KEY }} | |
| - name: Prepare inputs | |
| run: | | |
| echo "BAZEL_URI=http://bazel-cache.ci-private.internal.perforator.tech:8080" > ${{ github.workspace }}/job-env | |
| echo "CACHE_RW=1" >> ${{ github.workspace }}/job-env | |
| echo "BAZEL_CACHE_USER=rw" >> ${{ github.workspace }}/job-env | |
| echo "BAZEL_CACHE_PASSWORD_PATH=/tmp/ci-password" >> ${{ github.workspace }}/job-env | |
| - name: Fetch password | |
| run: | | |
| echo -n '${{ secrets.CACHE_PASSWORD }}' > ${{ runner.temp }}/cache-password | |
| - name: Run tests | |
| uses: ./code/.github/actions/remote-run | |
| with: | |
| target_checkout: ${{ github.workspace }}/code | |
| script: build | |
| start_function_url: ${{ secrets.START_BUILD_FUNCTION_URL }} | |
| poll_function_url: ${{ secrets.POLL_BUILD_FUNCTION_URL }} | |
| iam_token: ${{ steps.login.outputs.token }} | |
| env_file_path: ${{ github.workspace }}/job-env | |
| secret_files: ${{ runner.temp }}/cache-password:/tmp/ci-password | |
| local_out_path: ${{ github.workspace }}/out | |
| remote_out_path: /home/builder/.ya/logs | |
| - name: Upload logs | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: logs | |
| path: ${{ github.workspace }}/out |