diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cfc5e84933e..6ad8f8964c5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,15 +27,15 @@ jobs: runs-on: ${{ matrix.image }} strategy: matrix: - os: [Ubuntu, macOS, Windows] - python-version: ["3.7", "3.8", "3.9", "3.10"] + os: [Windows] + python-version: ["3.10"] include: - - os: Ubuntu - image: ubuntu-22.04 +# - os: Ubuntu +# image: ubuntu-22.04 - os: Windows image: windows-2022 - - os: macOS - image: macos-12 +# - os: macOS +# image: macos-12 fail-fast: false defaults: run: @@ -88,7 +88,7 @@ jobs: run: poetry run pip install pytest-github-actions-annotate-failures - name: Run pytest - run: poetry run python -m pytest -p no:sugar -vv tests/ + run: poetry run python -m pytest -p no:sugar -vv tests/console/commands/test_init.py::test_init_existing_pyproject_simple - name: Run pytest (integration suite) env: diff --git a/tests/console/commands/test_init.py b/tests/console/commands/test_init.py index 4805552b2ed..aae9f6d8411 100644 --- a/tests/console/commands/test_init.py +++ b/tests/console/commands/test_init.py @@ -800,6 +800,12 @@ def test_init_existing_pyproject_simple( line-length = 88 """ pyproject_file.write_text(decode(existing_section)) + print(pyproject_file.read_text()) + + from poetry.core.pyproject.toml import PyProjectTOML + + print(PyProjectTOML(pyproject_file).data.as_string()) + tester.execute(inputs=init_basic_inputs) assert f"{existing_section}\n{init_basic_toml}" in pyproject_file.read_text()