-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #497 from ClearcodeHQ/setup-elasticsearch
Change the way elasticsearch is set up - closes #468
- Loading branch information
Showing
4 changed files
with
10 additions
and
77 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,23 +14,26 @@ runs: | |
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ inputs.python-version }} | ||
- name: Cache Elasticsearch installations | ||
uses: actions/cache@v3 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/es | ||
key: es-${{ hashFiles('.install-elasticsearch.sh') }} | ||
path: ~/elasticsearch | ||
key: elasticsearch-${{ inputs.elasticsearch }} | ||
- name: Setup elasticsearch | ||
uses: ankane/setup-elasticsearch@v1 | ||
with: | ||
elasticsearch-version: ${{ inputs.elasticsearch }} | ||
- name: Run test | ||
uses: fizyk/actions-reuse/.github/actions/[email protected] | ||
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/[email protected] | ||
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/[email protected] | ||
with: | ||
|
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Switched custom elasticsearch installation script to `ankane/setup-elasticsearch@v1` |