Merge pull request #105 from OpenPecha/feat-add_google_api_for_docs_a… #189
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.8" | |
- name: Install dependencies | |
run: | | |
pip install -U pip | |
pip install . | |
pip install .[dev] | |
- name: Test with pytest | |
env: | |
GITHUB_TOKEN: "dummy value" | |
ANTHROPIC_API_KEY: "dummy value" | |
run: PYTHONPATH=src pytest | |
- name: Test Coverage | |
env: | |
GITHUB_TOKEN: "dummy value" | |
ANTHROPIC_API_KEY: "dummy value" | |
run: PYTHONPATH=src pytest --cov openpecha |