Skip to content

Commit

Permalink
ci: remove tox
Browse files Browse the repository at this point in the history
  • Loading branch information
abn committed Feb 22, 2024
1 parent 34c3873 commit 6b766d8
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,30 +43,18 @@ jobs:
shell: bash
run: docker-compose up -d apollo-server-v2

- name: Install poetry and tox
run: pipx install poetry tox
- 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: Get full Python version
id: full-python-version
shell: bash
run: echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")

- name: Set up cache
uses: actions/cache@v4
id: cache
with:
path: .tox
key: tox-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock') }}

- name: Setup test environment
shell: bash
run: tox -e py --notest
run: poetry install

- name: Wait for hasura
shell: bash
Expand All @@ -78,6 +66,6 @@ jobs:
- name: Execute test suite
shell: bash
run: |
pytest \
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"

0 comments on commit 6b766d8

Please sign in to comment.