Add requirements note to tutorial #2
Workflow file for this run
This file contains hidden or 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: Graph visualizer python CI | |
| on: | |
| push: | |
| paths: | |
| - 'python/**' | |
| - '.github/workflows/python-ci.yml' | |
| pull_request: | |
| paths: | |
| - 'python/**' | |
| - '.github/workflows/python-ci.yml' | |
| jobs: | |
| run-tests: | |
| name: Run python tests | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| backend: | |
| - python | |
| include: | |
| - backend: python | |
| working-directory: python | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Setup TypeDB | |
| uses: typedb/setup-typedb@1.0.0 | |
| with: | |
| typedb_version: 3.7.0-rc0 | |
| typedb_args: "--development-mode.enabled=true" | |
| - name: Set up Python (Python only) | |
| if: matrix.backend == 'python' | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.9' | |
| - name: Install dependencies (Python) | |
| if: matrix.backend == 'python' | |
| working-directory: ${{ matrix.working-directory }} | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip3 install . | |
| pip3 install .[dev] | |
| # Run the API tests against the running backend | |
| - name: Run API tests | |
| working-directory: ${{ github.workspace }} | |
| env: | |
| TYPEDB_DATABASE: ${{ matrix.backend }} | |
| run: | | |
| pytest |