Skip to content

Commit

Permalink
Add streaming support (#177)
Browse files Browse the repository at this point in the history
Co-authored-by: fauna-chase <73842483+fauna-chase@users.noreply.github.com>
Co-authored-by: James Rodewig <james.rodewig@fauna.com>
  • Loading branch information
3 people authored May 20, 2024
1 parent 95d15e8 commit cb8b7fa
Show file tree
Hide file tree
Showing 23 changed files with 1,411 additions and 620 deletions.
31 changes: 5 additions & 26 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,48 +19,27 @@ jobs:
- "3.11"
- "3.10"
- "3.9"
fauna-docker-service:
- name: "fauna/faunadb:latest"
host: "core"
port: "8443"
# if we had a nightly image, we could run the testsuite against it by uncommented this
# - name: "fauna/faunadb:nightly"
# host: "localhost"
# port: "8443"

timeout-minutes: 5
runs-on: ubuntu-latest

container:
image: python:${{ matrix.python-version}}

services:
core:
image: ${{ matrix.fauna-docker-service.name }}

steps:
- uses: actions/checkout@v3

- name: Show file descriptor limit
run: ulimit -a

- name: "Install ci dependencies"
run: pip install . .[test] .[lint] --use-pep517
- name: Build docker
run: docker-compose -f docker/docker-compose.yml build --build-arg BASE_IMG=python:${{ matrix.python-version }} --no-cache

- name: Run unit tests
run: pytest -v --cov=fauna --cov-context=test tests/unit
run: docker-compose -f docker/docker-compose.yml run --rm unit-test

- name: Run integration tests
run: pytest -v --cov=fauna --cov-context=test tests/integration
# To get more insight into tests which are only flaky when run in github actions -- use commands like below
# run: env HTTPX_LOG_LEVEL=trace pytest --capture=no -v --cov=fauna --cov-context=test -k test_stream_max_open_streams
env:
FAUNA_ENDPOINT: "http://${{ matrix.fauna-docker-service.host }}:${{ matrix.fauna-docker-service.port }}"
FAUNA_ROOT_KEY: secret
USE_GITHUB_ACTION_OVERRIDES: 1
run: docker-compose -f docker/docker-compose.yml run --rm integration-test

- name: Generate coverage html report with dynamic contexts
run: coverage html --show-contexts
run: docker-compose -f docker/docker-compose.yml run --rm coverage

- uses: actions/upload-artifact@v3
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/validate-readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Validate README
on:
push:
paths:
- 'README.rst'
- 'README.md'

jobs:
validate:
Expand All @@ -19,5 +19,5 @@ jobs:
- name: Install dependencies
run: pip install readme_renderer 'readme_renderer[md]'

- name: Validate readme.rst
run: python -m readme_renderer README.rst
- name: Validate README.md
run: python -m readme_renderer README.md
Loading

0 comments on commit cb8b7fa

Please sign in to comment.