Skip to content

Commit 8187109

Browse files
authored
Attempt to fix the new CI/CD. Working locally now. (#34)
* Attempt to fix the new CI/CD. Working locally now. Had to add pytest-xdist for the -n flag Fixed the package include for src/strawberry-sqlalchemy-mapper Upgrade pip before installing poetry * See if upgrading setuptools and wheel also helps. * Force greenlet 3.0.0rc1 on python 3.12 * Check in an empty benchmark for benchmark to succeed. * Add a RELEASE.md
1 parent 6bfd552 commit 8187109

File tree

6 files changed

+293
-204
lines changed

6 files changed

+293
-204
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ jobs:
102102
cache: "poetry"
103103

104104
- run: poetry env use 3.12.0-beta.3
105+
- run: poetry run pip install --upgrade pip setuptools wheel
105106
- run: poetry install
106107
if: steps.setup-python.outputs.cache-hit != 'true'
107108

@@ -155,7 +156,8 @@ jobs:
155156
python-version: "3.11"
156157
cache: "poetry"
157158

158-
- run: poetry install --with integrations
159+
- run: poetry run pip install --upgrade pip setuptools wheel
160+
- run: poetry install
159161
if: steps.setup-python.outputs.cache-hit != 'true'
160162

161163
# we use poetry directly instead of nox since we want to

RELEASE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Release type: patch
2+
3+
Dependency version changes needed for python 3.12 compatibility.

noxfile.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@
2020

2121
@session(python=PYTHON_VERSIONS, name="Tests", tags=["tests"])
2222
def tests(session: Session) -> None:
23+
session.run_always(
24+
"poetry",
25+
"run",
26+
"pip",
27+
"install",
28+
"--upgrade",
29+
"pip",
30+
"setuptools",
31+
"wheel",
32+
external=True,
33+
)
2334
session.run_always("poetry", "install", external=True)
2435

2536
session.run(

0 commit comments

Comments
 (0)