|
66 | 66 | PRE_COMMIT_COLOR: always |
67 | 67 | PY_COLORS: 1 # Recognized by the `py` package, dependency of `pytest` |
68 | 68 | PYTHONIOENCODING: utf-8 |
| 69 | + PYTHONLEGACYWINDOWSSTDIO: 1 # Python 3.6 hack |
69 | 70 | PYTHONUTF8: 1 |
70 | 71 | TOX_PARALLEL_NO_SPINNER: 1 |
71 | 72 | TOX_TESTENV_PASSENV: >- # Make tox-wrapped tools see color requests |
@@ -911,13 +912,46 @@ jobs: |
911 | 912 | 3.10 |
912 | 913 | - 3.9 |
913 | 914 | - 3.8 |
| 915 | + - pypy-3.7 |
| 916 | + - 3.7 |
| 917 | + - 3.6 |
| 918 | + - pypy-3.6 |
914 | 919 | os: |
915 | 920 | - ubuntu-22.04 |
916 | 921 | - ubuntu-20.04 |
917 | 922 | - macos-11.0 |
918 | 923 | - macos-latest |
919 | 924 | - windows-2019 |
920 | 925 | - windows-2022 |
| 926 | + exclude: |
| 927 | + # NOTE: Windows PyPy jobs are excluded to address the tox bug |
| 928 | + # NOTE: https://github.com/tox-dev/tox/issues/1704. |
| 929 | + # NOTE: They should be re-added once it's fixed. |
| 930 | + - os: windows-2022 |
| 931 | + python-version: pypy-3.6 |
| 932 | + - os: windows-2019 |
| 933 | + python-version: pypy-3.6 |
| 934 | + # NOTE: Windows PyPy 3.7 jobs are excluded because of the lack |
| 935 | + # NOTE: of the build deps to compile cryptography. |
| 936 | + # NOTE: They should be re-added once it's fixed. |
| 937 | + - os: windows-2022 |
| 938 | + python-version: pypy-3.7 |
| 939 | + - os: windows-2019 |
| 940 | + python-version: pypy-3.7 |
| 941 | + # NOTE: macOS PyPy jobs are excluded because installing cryptography |
| 942 | + # NOTE: needs openssl headers that aren't present at the moment. |
| 943 | + # TODO: Remove the exclusions once this is addressed. |
| 944 | + - os: macOS-11.0 |
| 945 | + python-version: pypy-3.6 |
| 946 | + - os: macos-latest |
| 947 | + python-version: pypy-3.6 |
| 948 | + - os: macos-11.0 |
| 949 | + python-version: pypy-3.7 |
| 950 | + - os: macos-latest |
| 951 | + python-version: pypy-3.7 |
| 952 | + # NOTE: Python 3.6 is not available for Ubuntu 22.04 |
| 953 | + - os: ubuntu-22.04 |
| 954 | + python-version: 3.6 |
921 | 955 |
|
922 | 956 | continue-on-error: >- |
923 | 957 | ${{ |
@@ -1021,6 +1055,16 @@ jobs: |
1021 | 1055 | --user |
1022 | 1056 | '${{ env.TOX_VERSION }}' |
1023 | 1057 |
|
| 1058 | + - name: Patch tox.ini for Python 3.6 under Windows |
| 1059 | + if: >- |
| 1060 | + runner.os == 'Windows' |
| 1061 | + && matrix.python-version == '3.6' |
| 1062 | + run: >- |
| 1063 | + sed -i |
| 1064 | + 's/^package_env\(\s\)\?=.*/package_env = py36-win-dummy/g' |
| 1065 | + tox.ini |
| 1066 | + shell: bash |
| 1067 | + |
1024 | 1068 | - name: Download all the dists |
1025 | 1069 | uses: actions/download-artifact@v3 |
1026 | 1070 | with: |
|
0 commit comments