Prove that actual Python == expected Python

This commit is contained in:
Christian Clauss 2021-03-03 13:26:08 +01:00 committed by GitHub
parent 45b99abec6
commit f75e028401
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,3 +30,7 @@ jobs:
bin/pyenv rehash
- run: python --version
- run: python -m pip --version
- shell: python # Prove that actual Python == expected Python
env:
EXPECTED_PYTHON: ${{ matrix.python-version }}
run: import os, sys ; assert sys.version.startswith(os.getenv("EXPECTED_PYTHON"))