|
15 | 15 | # https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners |
16 | 16 | # https://github.com/actions/runner-images/blob/main/README.md#software-and-image-support |
17 | 17 | jobs: |
18 | | - u2204: |
19 | | - name: u2204 ${{ matrix.tox_env }} |
20 | | - # https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md |
21 | | - runs-on: ubuntu-22.04 |
22 | | - timeout-minutes: 25 |
23 | | - |
24 | | - strategy: |
25 | | - fail-fast: false |
26 | | - matrix: |
27 | | - include: |
28 | | - - tox_env: py27-m_ans-ans2.10 |
29 | | - - tox_env: py27-m_ans-ans4 |
30 | | - |
31 | | - - tox_env: py36-m_ans-ans2.10 |
32 | | - - tox_env: py36-m_ans-ans4 |
33 | | - |
34 | | - - tox_env: py27-m_mtg |
35 | | - - tox_env: py36-m_mtg |
36 | | - |
37 | | - steps: |
38 | | - - uses: actions/checkout@v6 |
39 | | - - uses: docker/login-action@v4 |
40 | | - with: |
41 | | - registry: ghcr.io |
42 | | - username: ${{ github.actor }} |
43 | | - password: ${{ secrets.GITHUB_TOKEN }} |
44 | | - - run: .ci/show_python_versions |
45 | | - - run: .ci/setup_ssh_key_mitogen__has_sudo_pubkey |
46 | | - - run: .ci/setup_sudoers_defaults |
47 | | - if: ${{ contains(matrix.tox_env, 'm_mtg') }} |
48 | | - - name: Install deps |
49 | | - id: install-deps |
50 | | - run: | |
51 | | - set -o errexit -o nounset -o pipefail |
52 | | - source .ci/bash_functions |
53 | | - PYTHON="$(toxenv-python '${{ matrix.tox_env }}')" |
54 | | -
|
55 | | - sudo apt-get update |
56 | | -
|
57 | | - if [[ $PYTHON == "python2.7" ]]; then |
58 | | - sudo apt install -y python2-dev sshpass virtualenv |
59 | | - curl "https://bootstrap.pypa.io/pip/2.7/get-pip.py" --output "get-pip.py" |
60 | | - "$PYTHON" get-pip.py --user --no-python-version-warning |
61 | | - # Avoid Python 2.x pip masking system pip |
62 | | - rm -f ~/.local/bin/{easy_install,pip,wheel} |
63 | | - elif [[ $PYTHON == "python3.6" ]]; then |
64 | | - sudo apt install -y gcc-10 make libbz2-dev liblzma-dev libreadline-dev libsqlite3-dev libssl-dev sshpass virtualenv zlib1g-dev |
65 | | - curl --fail --silent --show-error --location https://pyenv.run | bash |
66 | | - CC=gcc-10 ~/.pyenv/bin/pyenv install --force 3.6 |
67 | | - PYTHON="$HOME/.pyenv/versions/3.6.15/bin/python3.6" |
68 | | - fi |
69 | | -
|
70 | | - "$PYTHON" -m pip install -r "tests/requirements-tox.txt" |
71 | | - echo "python=$PYTHON" >> $GITHUB_OUTPUT |
72 | | - - name: Create environments |
73 | | - run: | |
74 | | - set -o errexit -o nounset -o pipefail |
75 | | - PYTHON="${{ steps.install-deps.outputs.python }}" |
76 | | - "$PYTHON" -m tox --notest -e "${{ matrix.tox_env }}" |
77 | | - - name: Run tests |
78 | | - env: |
79 | | - GITHUB_ACTOR: ${{ github.actor }} |
80 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
81 | | - run: | |
82 | | - set -o errexit -o nounset -o pipefail |
83 | | - PYTHON="${{ steps.install-deps.outputs.python }}" |
84 | | -
|
85 | | - "$PYTHON" -m tox -e "${{ matrix.tox_env }}" |
86 | | -
|
87 | 18 | u2404: |
88 | 19 | name: u2404 ${{ matrix.tox_env }} |
89 | 20 | # https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md |
|
94 | 25 | fail-fast: false |
95 | 26 | matrix: |
96 | 27 | include: |
97 | | - - tox_env: py311-m_ans-ans2.10 |
98 | | - python_version: '3.11' |
99 | | - - tox_env: py311-m_ans-ans3 |
100 | | - python_version: '3.11' |
101 | | - - tox_env: py311-m_ans-ans4 |
102 | | - python_version: '3.11' |
103 | | - - tox_env: py311-m_ans-ans5 |
104 | | - python_version: '3.11' |
105 | | - - tox_env: py313-m_ans-ans6 |
106 | | - python_version: '3.13' |
107 | | - - tox_env: py313-m_ans-ans7 |
108 | | - python_version: '3.13' |
109 | | - - tox_env: py313-m_ans-ans8 |
110 | | - python_version: '3.13' |
111 | | - - tox_env: py314-m_ans-ans9 |
112 | | - python_version: '3.14' |
113 | | - - tox_env: py314-m_ans-ans10 |
114 | | - python_version: '3.14' |
115 | | - - tox_env: py314-m_ans-ans11 |
116 | | - python_version: '3.14' |
117 | | - - tox_env: py314-m_ans-ans12 |
118 | | - python_version: '3.14' |
119 | | - - tox_env: py314-m_ans-ans13 |
120 | | - python_version: '3.14' |
121 | | - |
122 | | - - tox_env: py314-m_ans-ans13-s_lin |
123 | | - python_version: '3.14' |
124 | | - |
125 | | - - tox_env: py314-m_mtg |
| 28 | + - tox_env: py314-m_ans-ans14-s_lin |
126 | 29 | python_version: '3.14' |
127 | 30 |
|
128 | 31 | steps: |
@@ -179,12 +82,7 @@ jobs: |
179 | 82 | fail-fast: false |
180 | 83 | matrix: |
181 | 84 | include: |
182 | | - - tox_env: py314-m_lcl-ans13 |
183 | | - python_version: '3.14' |
184 | | - - tox_env: py314-m_lcl-ans13-s_lin |
185 | | - python_version: '3.14' |
186 | | - |
187 | | - - tox_env: py314-m_mtg |
| 85 | + - tox_env: py314-m_lcl-ans14-s_lin |
188 | 86 | python_version: '3.14' |
189 | 87 |
|
190 | 88 | steps: |
@@ -229,7 +127,6 @@ jobs: |
229 | 127 | check: |
230 | 128 | if: always() |
231 | 129 | needs: |
232 | | - - u2204 |
233 | 130 | - u2404 |
234 | 131 | - macos |
235 | 132 | runs-on: ubuntu-latest |
|
0 commit comments