Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for @bytes #179

Merged
merged 16 commits into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading