Skip to content

Commit

Permalink
Fix some issues in GitHub workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
corafid committed Dec 4, 2024
1 parent a0e9fde commit 0228f39
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/pre-commit-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,18 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Upgrade pip & install requirements
- name: Install poetry
run: |
pip install poetry
- name: Install dependencies
run: |
poetry install
- name: Install pre-commit
run: |
pip install pre-commit
- name: Formatting
- name: Run pre-commit
run: |
pre-commit run --all-files
10 changes: 4 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,15 @@ jobs:
cache-dependency-path: |
poetry.lock
- name: Install dependencies (tests)
- name: Install poetry
run: |
pip install pytest pytest-asyncio pytest-mock requests-mock
pip install poetry
- name: Install dependencies
working-directory: .
run: |
pip install -e .
poetry install
- name: Run tests
working-directory: .
run: |
echo $COHERE_API_KEY
pytest -sv tests/test_compass_client.py
poetry run pytest -sv
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0228f39

Please sign in to comment.