Skip to content

Commit

Permalink
add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jxnl committed Nov 20, 2023
1 parent 5d04684 commit cdeb195
Show file tree
Hide file tree
Showing 3 changed files with 233 additions and 139 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
steps:
- uses: actions/checkout@v2



- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
Expand All @@ -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 }}
Loading

0 comments on commit cdeb195

Please sign in to comment.