initial init command #236
Workflow file for this run
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: Python CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
permissions: | |
contents: read | |
pull-requests: read | |
jobs: | |
python-ci: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11"] | |
poetry-version: ["1.6.1"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dorny/paths-filter@v3 | |
id: changes | |
with: | |
filters: | | |
python: | |
- 'graphrag/**/*' | |
- 'poetry.lock' | |
- 'pyproject.toml' | |
- '**/*.py' | |
- '**/*.toml' | |
- '**/*.ipynb' | |
- .github/workflows/python-ci.yml | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Poetry ${{ matrix.poetry-version }} | |
uses: abatilo/[email protected] | |
with: | |
poetry-version: ${{ matrix.poetry-version }} | |
- name: Install dependencies | |
shell: bash | |
run: poetry install | |
- name: Check Semversioner | |
run: | | |
poetry run semversioner check | |
- name: Check | |
run: | | |
poetry run poe check | |
- name: Build | |
run: | | |
poetry build | |
- name: Start Azurite | |
run: ./scripts/start-azurite.sh& | |
- name: Unit Test | |
run: | | |
poetry run poe test_unit | |
env: | |
GRAPHRAG_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
- name: Integration Test | |
run: | | |
poetry run poe test_integration | |
env: | |
GRAPHRAG_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
- name: Smoke Test | |
if: steps.changes.outputs.python == 'true' | |
run: | | |
poetry run poe test_smoke | |
env: | |
GRAPHRAG_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
GRAPHRAG_LLM_MODEL: gpt-3.5-turbo | |
GRAPHRAG_EMBEDDING_MODEL: text-embedding-3-small | |
- name: E2E Test | |
if: steps.changes.outputs.python == 'true' | |
run: | | |
./scripts/e2e-test.sh |