From da7937ebf3ad2b4e80b9c2696451445ee818f37a Mon Sep 17 00:00:00 2001 From: Hugo Sansaqua Date: Sat, 21 Oct 2023 13:49:51 +0900 Subject: [PATCH] Test on non-ascii working directory in CI --- .github/workflows/main.yml | 35 +++++------------------------------ 1 file changed, 5 insertions(+), 30 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fb382bdbb5a..24ded75fd61 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,9 +6,6 @@ on: - 'docs/**' - '.cirrus.yml' - '.github/workflows/docs.yml' - branches: - - master - - develop pull_request: paths-ignore: - 'docs/**' @@ -27,21 +24,20 @@ jobs: runs-on: ${{ matrix.image }} strategy: matrix: - os: [Ubuntu, macOS, Windows] - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + os: [Windows] + python-version: ["3.8", "3.12"] include: - - os: Ubuntu - image: ubuntu-22.04 - os: Windows image: windows-2022 - - os: macOS - image: macos-12 fail-fast: false defaults: run: shell: bash + working-directory: ä steps: - uses: actions/checkout@v4 + with: + path: ä - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 @@ -103,24 +99,3 @@ jobs: POETRY_TEST_INTEGRATION_GIT_USERNAME: ${GITHUB_ACTOR} POETRY_TEST_INTEGRATION_GIT_PASSWORD: ${{ secrets.GITHUB_TOKEN }} run: poetry run pytest --integration -v - - - name: Get Plugin Version (poetry-plugin-export) - id: poetry-plugin-export-version - run: | - echo version=$(poetry show poetry-plugin-export | grep version | cut -d : -f 2 | xargs) >> $GITHUB_OUTPUT - - - name: Checkout Plugin Source (poetry-plugin-export) - uses: actions/checkout@v4 - with: - path: poetry-plugin-export - repository: python-poetry/poetry-plugin-export - ref: refs/tags/${{ steps.poetry-plugin-export-version.outputs.version }} - - - name: Run pytest (poetry-plugin-export) - working-directory: ./poetry-plugin-export - run: poetry run -C .. pytest -v - - - name: Check for clean working tree - run: | - git diff --exit-code --stat HEAD - git -C poetry-plugin-export diff --exit-code --stat HEAD