diff --git a/.github/actions/pytest/action.yml b/.github/actions/pytest/action.yml index 9fc561ed..9fdac39c 100644 --- a/.github/actions/pytest/action.yml +++ b/.github/actions/pytest/action.yml @@ -24,19 +24,22 @@ runs: elasticsearch-version: ${{ inputs.elasticsearch }} - name: Test path shell: bash - run: "echo $ES_HOME" + run: echo $ES_HOME + - name: Elasticsearch bin + shell: bash + run: echo "elasticsearch_bin=$ES_HOME/bin/elasticsearch" >> "$GITHUB_ENV" - name: Run test uses: fizyk/actions-reuse/.github/actions/pipenv@v2.1.2 with: python-version: ${{ matrix.python-version }} pipenv-install-options: "--skip-lock" - command: pytest --elasticsearch-executable=/home/runner/es/elasticsearch-${{ inputs.elasticsearch }}/bin/elasticsearch -n 0 --cov-report=xml + command: pytest --elasticsearch-executable=$ES_HOME/bin/elasticsearch -n 0 --cov-report=xml - name: Run xdist test uses: fizyk/actions-reuse/.github/actions/pipenv@v2.1.2 with: python-version: ${{ matrix.python-version }} pipenv-install-options: "--skip-lock" - command: pytest --elasticsearch-executable=/home/runner/es/elasticsearch-${{ inputs.elasticsearch }}/bin/elasticsearch -n 1 --cov-report=xml:coverage-xdist.xml + command: pytest --elasticsearch-executable=$ES_HOME/bin/elasticsearch -n 1 --cov-report=xml:coverage-xdist.xml - name: Upload coverage to Codecov uses: codecov/codecov-action@v3.0.0 with: