Add coveralls (#203)

This commit is contained in:
Jason Liu
2023-11-19 21:36:04 -05:00
committed by GitHub
parent 5d04684792
commit 2d06f5a46b
10 changed files with 412 additions and 268 deletions
+12 -2
View File
@@ -16,6 +16,8 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
@@ -27,7 +29,15 @@ jobs:
- name: Install dependencies
run: poetry install --with dev
- name: Run test
run: poetry run pytest tests/
- name: Run tests with coverage
run: |
poetry run coverage run -m pytest tests/
poetry run coverage report
poetry run coverage html
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v2.2.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}