Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: add unit tests for vaults #3

Merged
merged 17 commits into from
Oct 26, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: add code coverall coverage
  • Loading branch information
narenaryan committed Oct 26, 2024
commit b37eba829368ebe205012bed748e31a2dfce0a3e
19 changes: 15 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,21 @@ jobs:
with:
python-version: "3.10"

- name: Install project requirements
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements_test.txt
pip install python-dateutil pytest mock pytest-cov coverage coveragepy-lcov

- name: Run unit tests
run: pytest tests
- name: Run Test
run: |
pytest --cov coveralls --cov-report term-missing --cov=resources tests/

- name: Covert to lcov
run: |
coveragepy-lcov

- name: Coveralls GitHub Action
uses: coverallsapp/github-action@1.1.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: lcov.info
Loading