Skip to content

Commit 0810895

Browse files
committed
Reorder dependency installation step in examples workflow
1 parent b4a177e commit 0810895

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/examples.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ jobs:
1616
uses: actions/setup-python@v2
1717
with:
1818
python-version: 3.8
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install -r requirements.txt
23+
pip install deepdiff colorama
24+
pip install .
1925
- name: Check SOLR availability
2026
run: |
2127
python -c "
@@ -32,12 +38,6 @@ jobs:
3238
f.write('SOLR_AVAILABLE=false\n')
3339
exit(1)
3440
"
35-
- name: Install dependencies
36-
run: |
37-
python -m pip install --upgrade pip
38-
pip install -r requirements.txt
39-
pip install deepdiff colorama
40-
pip install .
4141
- name: Run examples from README.md
4242
run: |
4343
cat README.md | grep -e '```python' -e '```' -e '^[^`]*$' | sed -e '/^```python/,/^```/!d' -e '/^```/d' -e 's/\(vfb\.[^(]*([^)]*)\)/try:\n result = \1\n print(result)\nexcept Exception as e:\n print(f"Skipped due to SOLR unavailability: {e}")/g' > test_examples.py

0 commit comments

Comments
 (0)