Skip to content

Commit 62670bf

Browse files
committed
refactor: requirements paths
1 parent 29b49a5 commit 62670bf

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

.github/actions/tests/python/action.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,40 +38,40 @@ runs:
3838
- name: Check for openai in requirements
3939
shell: bash
4040
run: |
41-
if ! grep -q "openai" ./requirements.txt; then
42-
echo "openai not found in requirements.txt" >&2
41+
if ! grep -q "openai" ./requirements/local.txt; then
42+
echo "openai not found in requirements/local.txt" >&2
4343
exit 1
4444
fi
4545
4646
- name: Check for langchain in requirements
4747
shell: bash
4848
run: |
49-
if ! grep -q "langchain" ./requirements.txt; then
50-
echo "langchain not found in requirements.txt" >&2
49+
if ! grep -q "langchain" ./requirements/local.txt; then
50+
echo "langchain not found in requirements/local.txt" >&2
5151
exit 1
5252
fi
5353
5454
- name: Check for langchain-experimental in requirements
5555
shell: bash
5656
run: |
57-
if ! grep -q "langchain-experimental" ./requirements.txt; then
58-
echo "langchain-experimental not found in requirements.txt" >&2
57+
if ! grep -q "langchain-experimental" ./requirements/local.txt; then
58+
echo "langchain-experimental not found in requirements/local.txt" >&2
5959
exit 1
6060
fi
6161
6262
- name: Check for pinecone-client in requirements
6363
shell: bash
6464
run: |
65-
if ! grep -q "pinecone-client" ./requirements.txt; then
66-
echo "pinecone-client not found in requirements.txt" >&2
65+
if ! grep -q "pinecone-client" ./requirements/local.txt; then
66+
echo "pinecone-client not found in requirements/local.txt" >&2
6767
exit 1
6868
fi
6969
7070
- name: Cache Python dependencies
7171
uses: actions/cache@v3
7272
with:
7373
path: ~/.cache/pip
74-
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
74+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements/local.txt') }}
7575
restore-keys: |
7676
${{ runner.os }}-pip
7777
@@ -93,7 +93,7 @@ runs:
9393
- name: Install dependencies
9494
shell: bash
9595
run: |
96-
pip install -r ./requirements.txt
96+
pip install -r ./requirements/local.txt
9797
env:
9898
SITE_PACKAGES_PATH: ${{ env.SITE_PACKAGES_PATH }}
9999

.github/workflows/precommitVersionBumps.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
uses: actions/cache@v4
4545
with:
4646
path: ~/.cache/pip
47-
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
47+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements/local.txt') }}
4848
restore-keys: |
4949
${{ runner.os }}-pip
5050
@@ -66,7 +66,7 @@ jobs:
6666
- name: Install dependencies
6767
shell: bash
6868
run: |
69-
pip install -r ./requirements.txt
69+
pip install -r ./requirements/local.txt
7070
env:
7171
SITE_PACKAGES_PATH: ${{ env.SITE_PACKAGES_PATH }}
7272

.github/workflows/pullRequestController.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ on:
4545
types: [opened, synchronize]
4646
paths:
4747
- "**.py"
48-
- "**.requirements.txt"
48+
- "./requirements"
4949
- "**.package.json"
5050
- "./models/**"
5151

release.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = {
1313
[
1414
"@semantic-release/git",
1515
{
16-
assets: ["CHANGELOG.md", "requirements.txt"],
16+
assets: ["CHANGELOG.md", "requirements/base.txt"],
1717
message:
1818
"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}",
1919
},

0 commit comments

Comments
 (0)