diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..96bff0e7 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +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 + shell: bash + run: | + tox -e ${{ matrix.tox_env }} + diff --git a/_appmap/test/conftest.py b/_appmap/test/conftest.py index e2dee18e..a0346f0e 100644 --- a/_appmap/test/conftest.py +++ b/_appmap/test/conftest.py @@ -177,6 +177,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}", diff --git a/tox.ini b/tox.ini index a25a18d4..51ace839 100644 --- a/tox.ini +++ b/tox.ini @@ -20,9 +20,9 @@ deps= commands = poetry install -v py310-web: poetry run pylint -j 0 appmap _appmap - web: poetry run appmap-python {posargs:pytest} - django3: poetry run appmap-python pytest _appmap/test/test_django.py - flask2: poetry run appmap-python pytest _appmap/test/test_flask.py + web: poetry run appmap-python {posargs:pytest -v} + django3: poetry run appmap-python pytest -v _appmap/test/test_django.py + flask2: poetry run appmap-python pytest -v _appmap/test/test_flask.py [testenv:vendoring] skip_install = True