Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
3 changes: 1 addition & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
ARG VARIANT=3.13
FROM mcr.microsoft.com/devcontainers/python:${VARIANT}

RUN pip3 install poetry pre-commit
RUN poetry config virtualenvs.in-project true
RUN pip3 install uv pre-commit
2 changes: 1 addition & 1 deletion .devcontainer/post-install.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
poetry install --with dev,integrations
uv sync
pre-commit install --install-hooks
8 changes: 0 additions & 8 deletions .github/bot-action/Dockerfile

This file was deleted.

17 changes: 0 additions & 17 deletions .github/bot-action/action.yml

This file was deleted.

51 changes: 0 additions & 51 deletions .github/bot-action/main.py

This file was deleted.

14 changes: 5 additions & 9 deletions .github/workflows/codeflash.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,12 @@ jobs:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v5
- name: Install uv
uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7.2.0
with:
enable-cache: true
python-version: "3.11"
- name: Install Project Dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install --all-extras
run: uv sync --all-extras
- name: Run Codeflash to optimize code
run: |
poetry env use python
poetry run codeflash --benchmark --benchmarks-root tests/benchmarks
run: uvx codeflash --benchmark --benchmarks-root tests/benchmarks
21 changes: 8 additions & 13 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,27 +30,22 @@ jobs:
cd e2e
bunx playwright install --with-deps

- name: Setup Python
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v5
- name: Install uv
uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7.2.0
with:
python-version: "3.12"

- name: Install Poetry
uses: snok/install-poetry@76e04a911780d5b312d89783f7b1cd627778900a # v1
with:
version: latest
virtualenvs-create: true
virtualenvs-in-project: true
enable-cache: true
python-version: "3.13"

- name: Install Python dependencies
run: |
poetry install --extras cli
poetry run pip install graphql-core==3.3.0a9
uv sync --extra cli
uv pip install graphql-core==3.3.0a9

- name: Start Strawberry server
run: |
cd e2e
poetry run strawberry dev app:schema --port 8000 &
# --no-sync prevents uv from reverting graphql-core to lockfile version
uv run --no-sync strawberry dev app:schema --port 8000 &
echo $! > server.pid
sleep 5 # Wait for server to start

Expand Down
16 changes: 7 additions & 9 deletions .github/workflows/federation-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
- "strawberry/printer/**"
- "federation-compatibility/**"
- "pyproject.toml"
- "poetry.lock"
- "uv.lock"
- ".github/workflows/federation-compatibility.yml"

jobs:
Expand All @@ -25,17 +25,15 @@ jobs:
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6

- run: pipx install poetry
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v4
id: setup-python
- name: Install uv
uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7.2.0
with:
python-version: "3.12"
cache: "poetry"
- run: poetry env use python3.12
- run: poetry install
enable-cache: true
python-version: "3.13"
- run: uv sync

- name: export schema
run: poetry run strawberry export-schema schema:schema > schema.graphql
run: uv run strawberry export-schema schema:schema > schema.graphql
working-directory: federation-compatibility

- uses: apollographql/federation-subgraph-compatibility@b6981fd83d24450a7cbd2d7727196e0ba57614e0 # v2
Expand Down
84 changes: 0 additions & 84 deletions .github/workflows/pre-release-pr.yml

This file was deleted.

Loading
Loading