|
7 | 7 | test: |
8 | 8 | runs-on: ${{ matrix.os }} |
9 | 9 | strategy: |
| 10 | + fail-fast: false |
10 | 11 | matrix: |
11 | | - os: [ubuntu-latest, macos-latest, windows-latest] |
12 | | - python-version: [3.5, 3.6, 3.7, 3.8, pypy3] |
| 12 | + os: [ubuntu-20.04, macos-13, windows-2019] |
| 13 | + python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', 'pypy3.10'] |
13 | 14 | steps: |
14 | 15 | - uses: actions/checkout@v4 |
15 | 16 | - name: Set up Python ${{ matrix.python-version }} |
|
21 | 22 | python -m pip install --upgrade pip |
22 | 23 | pip install pytest hypothesis flake8 coverage |
23 | 24 | - name: Run tests on Unix |
24 | | - if: ${{ matrix.os != 'windows-latest' }} |
| 25 | + if: ${{ matrix.os != 'windows-2019' }} |
25 | 26 | run: | |
26 | 27 | LANG=C LC_ALL=C python -c "import sys; print(sys.getfilesystemencoding())"; |
27 | 28 | LANG=C LC_ALL=C python -m coverage run --branch setup.py test |
|
31 | 32 |
|
32 | 33 | python -m coverage xml -i |
33 | 34 | - name: Run tests on Windows |
34 | | - if: ${{ matrix.os == 'windows-latest' }} |
| 35 | + if: ${{ matrix.os == 'windows-2019' }} |
35 | 36 | run: | |
36 | 37 | python -m coverage run --branch setup.py test |
37 | 38 | python -m coverage xml -i |
|
40 | 41 | python -m flake8 |
41 | 42 | - name: Upload coverage to Codecov |
42 | 43 | uses: codecov/codecov-action@v5 |
43 | | - |
44 | | - test-mypy: |
45 | | - runs-on: ${{ matrix.os }} |
46 | | - strategy: |
47 | | - matrix: |
48 | | - os: [ubuntu-latest, macos-latest, windows-latest] |
49 | | - python-version: [3.6, 3.8] |
50 | | - steps: |
51 | | - - uses: actions/checkout@v4 |
52 | | - - name: Set up Python ${{ matrix.python-version }} |
53 | | - uses: actions/setup-python@v5 |
54 | | - with: |
55 | | - python-version: ${{ matrix.python-version }} |
56 | | - - name: Install dependencies |
57 | | - run: | |
58 | | - python -m pip install --upgrade pip |
59 | | - pip install mypy |
60 | | - - name: Run mypy |
61 | | - run: | |
62 | | - python -m mypy . |
63 | | -
|
64 | | - test-py2: |
65 | | - runs-on: ${{ matrix.os }} |
66 | | - strategy: |
67 | | - matrix: |
68 | | - os: [ubuntu-latest, macos-latest, windows-latest] |
69 | | - python-version: [2.7] |
70 | | - steps: |
71 | | - - uses: actions/checkout@v4 |
72 | | - - name: Set up Python ${{ matrix.python-version }} |
73 | | - uses: actions/setup-python@v5 |
74 | | - with: |
75 | | - python-version: ${{ matrix.python-version }} |
76 | | - - name: Install dependencies |
77 | | - run: | |
78 | | - python -m pip install --upgrade pip |
79 | | - pip install pytest hypothesis coverage typing |
80 | | - - name: Run tests on Unix |
81 | | - if: ${{ matrix.os != 'windows-latest' }} |
82 | | - run: | |
83 | | - LANG=C LC_ALL=C python -c "import sys; print(sys.getfilesystemencoding())"; |
84 | | - LANG=C LC_ALL=C python -m coverage run --branch setup.py test |
85 | | -
|
86 | | - LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 python -c "import sys; print(sys.getfilesystemencoding())"; |
87 | | - LANG=C LC_ALL=C python -m coverage run --append --branch setup.py test |
88 | | -
|
89 | | - python -m coverage xml -i |
90 | | - - name: Run tests on Windows |
91 | | - if: ${{ matrix.os == 'windows-latest' }} |
92 | | - run: | |
93 | | - python -m coverage run --branch setup.py test |
94 | | - python -m coverage xml -i |
95 | | - - name: Upload coverage to Codecov |
96 | | - uses: codecov/codecov-action@v5 |
0 commit comments