Skip to content

Commit a706d03

Browse files
committed
Update how pip packages are installed
1 parent de31d07 commit a706d03

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ jobs:
1818
- name: Install all dependencies
1919
run: |
2020
python -m pip install --upgrade pipenv
21-
python -m pip install --upgrade 'algoliasearch>=4.0,<5.0'
2221
2322
- name: Clone algolia repository
2423
uses: actions/checkout@v2
@@ -51,15 +50,14 @@ jobs:
5150
5251
- name: Delete Old Index
5352
run: |
54-
pip list
5553
echo "from algoliasearch.search_client import SearchClient" > deleteIndex.py
5654
echo "client = SearchClient.create(\"AKRT8SVTPP\", \"${{ secrets.API_KEY }}\")" >> deleteIndex.py
5755
echo "index = client.init_index(\"hardwario\")" >> deleteIndex.py
5856
echo "index.clear_objects()" >> deleteIndex.py
5957
echo "print(\"Deleted records.\")" >> deleteIndex.py
6058
61-
cat deleteIndex.py
62-
python deleteIndex.py
59+
pipenv install algoliasearch
60+
pipenv run python deleteIndex.py
6361
6462
- name: Build The Index
6563
run: |

0 commit comments

Comments
 (0)