|
9 | 9 |
|
10 | 10 | jobs: |
11 | 11 | run_test: |
12 | | - name: ${{ matrix.py-ver-mypy-protobuf }} |
13 | | - runs-on: ubuntu-20.04 |
| 12 | + name: mypy - ${{ matrix.py-ver-mypy-protobuf }} - unittest - ${{ matrix.py-ver-unit-tests }} |
| 13 | + runs-on: ubuntu-24.04 |
14 | 14 | # Some CI issues regarding ubuntu-latest |
15 | 15 | # runs-on: ubuntu-latest |
16 | 16 | env: |
17 | 17 | PY_VER_MYPY: 3.8.17 |
18 | | - PY_VER_UNIT_TESTS_3: 3.8.17 |
19 | 18 | strategy: |
20 | 19 | matrix: |
21 | 20 | # Running mypy-protobuf itself |
22 | | - py-ver-mypy-protobuf: [3.8.17, 3.9.17, 3.10.12, 3.11.4] |
| 21 | + py-ver-mypy-protobuf: [3.8.17, 3.9.17, 3.10.12, 3.11.4, 3.12.12, 3.13.9, 3.14.0] |
| 22 | + py-ver-unit-tests: [3.8.17, 3.13.9, 3.14.0] |
| 23 | + |
23 | 24 | steps: |
24 | 25 | - uses: actions/checkout@v4 |
25 | 26 | - name: Read version numbers |
|
42 | 43 | - name: Cache pyenv unit tests 3 ver |
43 | 44 | uses: actions/cache@v4 |
44 | 45 | with: |
45 | | - path: ~/.pyenv/versions/${{env.PY_VER_UNIT_TESTS_3}} |
46 | | - key: pyenv-${{env.PY_VER_UNIT_TESTS_3}}-${{hashFiles('setup.py')}} |
| 46 | + path: ~/.pyenv/versions/${{matrix.py-ver-unit-tests}} |
| 47 | + key: pyenv-${{matrix.py-ver-unit-tests}}-${{hashFiles('setup.py')}} |
47 | 48 | - name: Cache pyenv mypy ver |
48 | 49 | uses: actions/cache@v4 |
49 | 50 | with: |
|
61 | 62 | eval "$(pyenv init --path)" |
62 | 63 | eval "$(pyenv virtualenv-init -)" |
63 | 64 |
|
64 | | - for PY in ${{matrix.py-ver-mypy-protobuf}} ${{env.PY_VER_MYPY}} ${{env.PY_VER_UNIT_TESTS_3}}; do |
| 65 | + for PY in ${{matrix.py-ver-mypy-protobuf}} ${{env.PY_VER_MYPY}} ${{matrix.py-ver-unit-tests}}; do |
65 | 66 | if [ ! -e ~/.pyenv/versions/$PY ]; then |
66 | 67 | pyenv install --skip-existing $PY |
67 | 68 | pyenv shell $PY |
|
71 | 72 | - name: Run Tests (./run_test.sh) |
72 | 73 | env: |
73 | 74 | PY_VER_MYPY_PROTOBUF: ${{matrix.py-ver-mypy-protobuf}} |
| 75 | + PY_VER_UNIT_TESTS: ${{matrix.py-ver-unit-tests}} |
74 | 76 | VALIDATE: 1 |
75 | 77 | run: | |
76 | 78 | export PATH="$HOME/.pyenv/bin:$PATH" |
|
0 commit comments