Skip to content

Commit

Permalink
Revert "Initial work to support streams (#155)"
Browse files Browse the repository at this point in the history
This reverts commit 6d0d365.
  • Loading branch information
pnwpedro committed Apr 1, 2024
1 parent 6475735 commit c44939e
Show file tree
Hide file tree
Showing 19 changed files with 229 additions and 791 deletions.
31 changes: 26 additions & 5 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,48 @@ 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: Build docker
run: docker-compose -f docker/docker-compose.yml build --build-arg BASE_IMG=python:${{ matrix.python-version }} --no-cache
- name: "Install ci dependencies"
run: pip install . .[test] .[lint] --use-pep517

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

- name: Run integration tests
run: docker-compose -f docker/docker-compose.yml run --rm integration-test
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

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

- uses: actions/upload-artifact@v3
with:
Expand Down
10 changes: 0 additions & 10 deletions docker/Dockerfile

This file was deleted.

38 changes: 0 additions & 38 deletions docker/docker-compose.yml

This file was deleted.

27 changes: 0 additions & 27 deletions docker/feature-flags.json

This file was deleted.

2 changes: 1 addition & 1 deletion fauna/client/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from .client import Client, QueryOptions, StreamOptions
from .client import Client, QueryOptions
from .endpoints import Endpoints
from .headers import Header
Loading

0 comments on commit c44939e

Please sign in to comment.