diff options
author | Naveen M K <naveen@syrusdark.website> | 2021-02-09 14:08:20 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-09 09:38:20 +0100 |
commit | b8451688b9cb295136c0154c7c59c25a9d88f844 (patch) | |
tree | 76529b80be291f6bff52bf7d0ddf4024075e0a9f /.github/workflows/python-tests.yml | |
parent | 74b17470912c83e658cfd18e66eec654be87fcd7 (diff) | |
download | setuptools-scm-b8451688b9cb295136c0154c7c59c25a9d88f844.tar.gz |
Use show prefix instead of show toplevel for finding (#520)
this takes the idea from https://github.com/msys2/MINGW-packages/blob/bf4d6f85053b66db09977ecffac0c1b3db735a0f/mingw-w64-python-setuptools-scm/0001-git-Use-show-prefix-instead-of-show-toplevel-for-fin.patch
and simplified the logic
additionally msys2 testing is added
Fixes https://github.com/pypa/setuptools_scm/issues/415
Diffstat (limited to '.github/workflows/python-tests.yml')
-rw-r--r-- | .github/workflows/python-tests.yml | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index ec2390b..4963733 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -23,13 +23,15 @@ jobs: include: - os: ubuntu-latest python_version: '3.9-dev' + - os: windows-latest + python_version: 'msys2' name: ${{ matrix.os }} - Python ${{ matrix.python_version }} steps: - uses: actions/checkout@v1 - name: Setup python uses: actions/setup-python@v2 - if: matrix.python_version != '3.9-dev' + if: matrix.python_version != '3.9-dev' && matrix.python_version != 'msys2' with: python-version: ${{ matrix.python_version }} architecture: x64 @@ -39,7 +41,15 @@ jobs: with: python-version: ${{ matrix.python_version }} architecture: x64 + - name: Setup MSYS2 + uses: msys2/setup-msys2@v2 + if: matrix.python_version == 'msys2' + with: + msystem: MINGW64 + install: git mingw-w64-x86_64-python mingw-w64-x86_64-python-setuptools + update: true - run: pip install -U setuptools + if: matrix.python_version != 'msys2' - run: pip install -e .[toml] pytest - run: pytest |