diff --git a/.github/workflows/cygwin-test.yml b/.github/workflows/cygwin-test.yml index 3f93f6830..1563afc95 100644 --- a/.github/workflows/cygwin-test.yml +++ b/.github/workflows/cygwin-test.yml @@ -29,11 +29,6 @@ jobs: with: packages: python39 python39-pip python39-virtualenv git - - name: Show python and git versions - run: | - /usr/bin/python --version - /usr/bin/git version - - name: Tell git to trust this repo run: | /usr/bin/git config --global --add safe.directory "$(pwd)" @@ -58,9 +53,13 @@ jobs: run: | /usr/bin/python -m pip install ".[test]" - - name: Check 'is_win' + - name: Show version and platform information run: | - /usr/bin/python -c 'import os, git; print(f"os.name={os.name}, is_win={git.compat.is_win}")' + /usr/bin/git version + /usr/bin/python --version + /usr/bin/python -c 'import sys; print(sys.platform)' + /usr/bin/python -c 'import os; print(os.name)' + /usr/bin/python -c 'import git; print(git.compat.is_win)' - name: Test with pytest run: | diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index c57f31cdc..696057ae2 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -36,11 +36,6 @@ jobs: python-version: ${{ matrix.python-version }} allow-prereleases: ${{ matrix.experimental }} - - name: Show python and git versions - run: | - python --version - git version - - name: Prepare this repo for tests run: | TRAVIS=yes ./init-tests-after-clone.sh @@ -66,6 +61,14 @@ jobs: run: | pip install ".[test]" + - name: Show version and platform information + run: | + git version + python --version + python -c 'import sys; print(sys.platform)' + python -c 'import os; print(os.name)' + python -c 'import git; print(git.compat.is_win)' + - name: Check types with mypy run: | mypy -p git @@ -73,10 +76,6 @@ jobs: # so we have to ignore errors until that changes. continue-on-error: true - - name: Check 'is_win' - run: | - python -c 'import os, git; print(f"os.name={os.name}, is_win={git.compat.is_win}")' - - name: Test with pytest run: | pytest -v