Skip to content

build(deps-dev): bump coverage from 7.4.2 to 7.4.3 #322

build(deps-dev): bump coverage from 7.4.2 to 7.4.3

build(deps-dev): bump coverage from 7.4.2 to 7.4.3 #322

Workflow file for this run

name: Test Suite
on:
push:
paths-ignore:
- 'docs/**'
branches:
- main
pull_request:
branches:
- '**'
jobs:
tests:
name: ${{ matrix.os }} / ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: [Ubuntu]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
services:
postgres:
image: docker.io/postgres:9.6-alpine
env:
POSTGRES_PASSWORD: hasura
POSTGRES_USER: hasura
POSTGRES_DB: hasura
ports:
- 5432:5432
hasura:
image: quay.io/twyla-ai/hasura-world-db:latest
env:
HASURA_GRAPHQL_DATABASE_URL: postgres://hasura:hasura@postgres:5432/hasura
HASURA_GRAPHQL_ADMIN_SECRET: secret
ports:
- 8080:8080
options: --restart on-failure
steps:
- uses: actions/checkout@v4
- name: Start test container (apollo-server-v2)
shell: bash
run: docker-compose up -d apollo-server-v2
- name: Install poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: poetry
- name: Setup test environment
shell: bash
run: poetry install
- name: Wait for hasura
shell: bash
run: |
timeout 300s bash -c \
'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' 127.0.0.1:${{ job.services.hasura.ports[8080] }}/healthz)" != "200" ]]; do sleep 5; done' \
|| false
- name: Execute test suite
shell: bash
run: |
poetry run pytest \
--server-world-db="http://127.0.0.1:${{ job.services.hasura.ports[8080] }}/v1/graphql" \
--server-apollo-v2="http://127.0.0.1:4000/graphql"