Skip to content

Commit 1a5c231

Browse files
committed
Move back again to global python
1 parent 2df6e8c commit 1a5c231

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
- name: Install all dependencies
1919
run: |
2020
python -m pip install --upgrade pipenv
21+
python -m pip install "algoliasearch>=4.0,<5.0"
2122
2223
- name: Clone algolia repository
2324
uses: actions/checkout@v2
@@ -48,18 +49,15 @@ jobs:
4849
sed -r -i'' 's/APPLICATION_ID=/APPLICATION_ID=AKRT8SVTPP/' algolia/.env
4950
sed -r -i'' 's/API_KEY=/API_KEY=${{ secrets.API_KEY }}/' algolia/.env
5051
51-
pipenv install "algoliasearch>=4.0,<5.0"
52-
pipenv run pip show algoliasearch
53-
5452
- name: Delete Old Index
5553
run: |
56-
echo "from algoliasearch.search_client import SearchClient" > tmp/deleteIndex.py
57-
echo "client = SearchClient.create(\"AKRT8SVTPP\", \"${{ secrets.API_KEY }}\")" >> tmp/deleteIndex.py
58-
echo "index = client.init_index(\"hardwario\")" >> tmp/deleteIndex.py
59-
echo "index.clear_objects()" >> tmp/deleteIndex.py
60-
echo "print(\"Deleted records.\")" >> tmp/deleteIndex.py
54+
echo "from algoliasearch.search_client import SearchClient" > deleteIndex.py
55+
echo "client = SearchClient.create(\"AKRT8SVTPP\", \"${{ secrets.API_KEY }}\")" >> deleteIndex.py
56+
echo "index = client.init_index(\"hardwario\")" >> deleteIndex.py
57+
echo "index.clear_objects()" >> deleteIndex.py
58+
echo "print(\"Deleted records.\")" >> deleteIndex.py
6159
62-
pipenv run python tmp/deleteIndex.py
60+
python deleteIndex.py
6361
6462
- name: Build The Index
6563
run: |

0 commit comments

Comments
 (0)