Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
[CI] Bug fix - install all depenencies
Browse files Browse the repository at this point in the history
Some of the dependencies, like `openai`, are required for linters to pass
  • Loading branch information
igiloh-pinecone committed Oct 29, 2023
1 parent ead3251 commit fe9456e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,18 @@ jobs:
#----------------------------------------------
# load cached venv if cache exists
#----------------------------------------------
- name: Load cached venv - dev dependencies only
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-dev-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}
#----------------------------------------------
# install dependencies if cache does not exist
#----------------------------------------------
- name: Install dev dependencies
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root --only dev
run: poetry install --no-interaction --no-root --with dev
- name: Run flake8 Check
run: poetry run flake8 .
- name: Run mypy check
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/merege_queue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ jobs:
#----------------------------------------------
# load cached venv if cache exists
#----------------------------------------------
- name: Load cached venv - dev dependencies only
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-dev-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}
#----------------------------------------------
# install dependencies if cache does not exist
#----------------------------------------------
- name: Install dev dependencies
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root --only dev
- name: Run flake8 Check
run: poetry install --no-interaction --no-root --with dev

run: poetry run flake8 .
- name: Run mypy check
run: poetry run mypy src
Expand Down

0 comments on commit fe9456e

Please sign in to comment.