Skip to content

Commit

Permalink
Fix codegen test in release CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fantix committed Aug 12, 2024
1 parent 5305fa8 commit c47f335
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/install-edgedb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ else
adduser -s /bin/bash -D edgedb
fi

su -l edgedb -c "edgedb server install"
su -l edgedb -c "edgedb server install --version ${EDGEDB_SERVER_VERSION}"
ln -s $(su -l edgedb -c "edgedb server info --latest --bin-path") \
"/usr/bin/edgedb-server"

Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ jobs:

env:
PIP_DISABLE_PIP_VERSION_CHECK: 1
EDGEDB_SERVER_VERSION: 5

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -140,17 +141,17 @@ jobs:
env:
CIBW_BUILD_VERBOSITY: 1
CIBW_BEFORE_ALL_LINUX: >
.github/workflows/install-edgedb.sh
EDGEDB_SERVER_VERSION=${{ env.EDGEDB_SERVER_VERSION }} .github/workflows/install-edgedb.sh
CIBW_TEST_EXTRAS: "test"
CIBW_TEST_COMMAND: >
python {project}/tests/__init__.py
EDGEDB_TEST_CODEGEN_ASSERT_SUFFIX=.assert${{ env.EDGEDB_SERVER_VERSION }} python {project}/tests/__init__.py
CIBW_TEST_COMMAND_WINDOWS: >
python {project}\tests\__init__.py
set EDGEDB_TEST_CODEGEN_ASSERT_SUFFIX=.assert${{ env.EDGEDB_SERVER_VERSION }} && python {project}\tests\__init__.py
CIBW_TEST_COMMAND_LINUX: >
PY=`which python`
&& CODEGEN=`which edgedb-py`
&& chmod -R go+rX "$(dirname $(dirname $(dirname $PY)))"
&& su -l edgedb -c "EDGEDB_PYTHON_TEST_CODEGEN_CMD=$CODEGEN $PY {project}/tests/__init__.py"
&& su -l edgedb -c "EDGEDB_PYTHON_TEST_CODEGEN_CMD=$CODEGEN EDGEDB_TEST_CODEGEN_ASSERT_SUFFIX=.assert${{ env.EDGEDB_SERVER_VERSION }} $PY {project}/tests/__init__.py"
- uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit c47f335

Please sign in to comment.