Skip to content

Commit 890629f

Browse files
committed
fix(ci/smoketest): account for possible altering of package name
1 parent 9d6679d commit 890629f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ jobs:
8888
- run: ci/run_tests.sh
8989
env:
9090
SMOKETEST_DOCKER_IMAGE: python:3.12-slim
91+
APPMAP_PACKAGE_NAME: ${{ github.ref_name=="master" && env.pypi_project || env.testpypi_project }}
9192

9293
# as a workaround to ownership issues (lost access to project)
9394
pypi:

ci/smoketest.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bash
22

3+
APPMAP_PACKAGE_NAME=${APPMAP_PACKAGE_NAME:-appmap}
4+
35
test_recording_when_appmap_not_true()
46
{
57
cat <<EOF > test_client.py
@@ -42,7 +44,7 @@ apt-get update -qq \
4244
&& apt-get install -y --no-install-recommends git
4345

4446
pip -q install -U pip pytest "flask>=2,<3" python-decouple
45-
pip -q install /dist/appmap-*-py3-none-any.whl
47+
pip -q install /dist/${APPMAP_PACKAGE_NAME}-*-py3-none-any.whl
4648

4749
cp -R /_appmap/test/data/unittest/simple ./.
4850

0 commit comments

Comments
 (0)