Skip to content

Commit

Permalink
Define test dependencies in the project
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfioravanti committed Aug 25, 2024
1 parent d47e1bf commit 94bae5b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Load SSH key into GitHub for 1Password Python SDK
- name: Load SSH key into GitHub for 1Password Python SDK install
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.PLOVER_1PASSWORD_PRIVATE_KEY }}
Expand All @@ -29,8 +29,8 @@ jobs:

- name: Install Test, Coverage, Lint, Type Checking Dependencies
run: |
pip install pytest pytest-mock pytest-asyncio pylint mypy coverage
pip install git+ssh://git@github.com/1Password/onepassword-sdk-python.git@v0.1.1
python -m pip install --editable ".[test]"
python -m pip install git+ssh://git@github.com/1Password/onepassword-sdk-python.git@v0.1.1
- name: Run Linter
run: pylint plover_1password
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Clone Repository
uses: actions/checkout@v3

- name: Load SSH key into GitHub for 1Password Python SDK
- name: Load SSH key into GitHub for 1Password Python SDK install
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.PLOVER_1PASSWORD_PRIVATE_KEY }}
Expand All @@ -29,8 +29,8 @@ jobs:

- name: Install Test, Coverage, Lint, Type Checking Dependencies
run: |
pip install pytest pytest-mock pytest-asyncio pylint mypy coverage
pip install git+ssh://git@github.com/1Password/onepassword-sdk-python.git@v0.1.1
python -m pip install --editable ".[test]"
python -m pip install git+ssh://git@github.com/1Password/onepassword-sdk-python.git@v0.1.1
- name: Run Linter
run: pylint plover_1password
Expand Down
9 changes: 9 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ packages =
plover.extension =
plover_1password = plover_1password.extension:OnePassword

[options.extras_require]
test=
coverage
pytest
pytest-mock
pytest-asyncio
pylint
mypy

[tool:pytest]
pythonpath = plover_1password

Expand Down

0 comments on commit 94bae5b

Please sign in to comment.