From 13ff16899c1ef1628ac45c6cb89da5079ecac643 Mon Sep 17 00:00:00 2001 From: Alan Potter Date: Wed, 28 Feb 2024 12:52:51 -0500 Subject: [PATCH 1/3] ci: add GH workflow --- .github/workflows/main.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..c4212f8f --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,31 @@ +name: Build +on: + pull_request: + schedule: + - cron: "0 0 * * 0" + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ ubuntu-latest, windows-latest, macos-latest ] + python: ["3.12"] + include: + - python: "3.12" + tox_env: "py312-web" + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python }} + - name: Install tox + run: | + python -m pip install --upgrade pip setuptools + pip install tox + - name: Test + run: | + tox -e ${{ matrix.tox_env }} + From 41046ca7e809fd0553b4040f207dc99a9076815a Mon Sep 17 00:00:00 2001 From: Alan Potter Date: Fri, 15 Mar 2024 13:47:59 -0400 Subject: [PATCH 2/3] wip, build debugging --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c4212f8f..20c00af7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,5 +27,5 @@ jobs: pip install tox - name: Test run: | - tox -e ${{ matrix.tox_env }} + tox -e ${{ matrix.tox_env }} -- pytest -svv -k test_fastapi From dfda4c2597849e0fac314fb09f214623bb2b4bae Mon Sep 17 00:00:00 2001 From: Alan Potter Date: Fri, 15 Mar 2024 14:04:50 -0400 Subject: [PATCH 3/3] fixup! ci: add GH workflow --- .github/workflows/main.yml | 1 + _appmap/test/conftest.py | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 20c00af7..b9fda1a7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,6 +26,7 @@ jobs: python -m pip install --upgrade pip setuptools pip install tox - name: Test + shell: bash run: | tox -e ${{ matrix.tox_env }} -- pytest -svv -k test_fastapi diff --git a/_appmap/test/conftest.py b/_appmap/test/conftest.py index a95100dc..16d7286e 100644 --- a/_appmap/test/conftest.py +++ b/_appmap/test/conftest.py @@ -178,6 +178,7 @@ def __init__(self, info: ServerInfo, controldir, xprocess): # In the meantime, pass the desired directory to server_runner, which # will handle changing the working directory. self._args = [ + "bash", (Path(__file__).parent / "bin" / "server_runner").as_posix(), (Path(__file__).parent / "data" / info.name).as_posix(), f"{Path(sys.executable).as_posix()} {info.cmd}",