diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index b7238972..9f3b546c 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -26,6 +26,8 @@ jobs: container: image: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-version-linux }} options: --user root + env: + PYTHON: '3.10' steps: - name: Checkout OpenSearch Dashboards @@ -34,6 +36,10 @@ jobs: repository: opensearch-project/OpenSearch-Dashboards ref: ${{ env.OPENSEARCH_DASHBOARDS_VERSION }} path: OpenSearch-Dashboards + - name: Setup Python + uses: actions/setup-python@main + with: + python-version: 3.10 - name: Checkout plugin uses: actions/checkout@v2 with: @@ -46,9 +52,10 @@ jobs: cd ./plugins/dashboards-flow-framework && whoami && yarn osd bootstrap && yarn build && yarn run test:jest --coverage" - name: Uploads coverage - uses: codecov/codecov-action@v4.5.0 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + uses: codecov/codecov-action@v4 + with: + env_vars: PYTHON + token: ${{ secrets.CODECOV_TOKEN }} # TODO: once github actions supports windows and macos docker containers, we can # merge these in to the above step's matrix, including adding windows support @@ -101,7 +108,7 @@ jobs: cd OpenSearch-Dashboards/plugins/dashboards-flow-framework yarn run test:jest --coverage - name: Uploads coverage - uses: codecov/codecov-action@v4.5.0 + uses: codecov/codecov-action@v4 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}