13
13
- " doc/**"
14
14
15
15
env :
16
- PYTEST_WORKERS : " auto"
17
16
PANDAS_CI : 1
18
17
19
18
jobs :
@@ -22,35 +21,51 @@ jobs:
22
21
defaults :
23
22
run :
24
23
shell : bash -l {0}
24
+ timeout-minutes : 120
25
25
strategy :
26
26
matrix :
27
- settings : [
28
- [actions-38-downstream_compat.yaml, "not slow and not network", "", "", "", "", ""],
29
- [actions-38-minimum_versions.yaml, "", "", "", "", "", ""],
30
- [actions-38.yaml, "not slow and not network", "language-pack-it", "it_IT.utf8", "it_IT.utf8", "", ""],
31
- [actions-38.yaml, "not slow and not network", "language-pack-zh-hans", "zh_CN.utf8", "zh_CN.utf8", "", ""],
32
- [actions-38.yaml, "", "", "", "", "", ""],
33
- [actions-pypy-38.yaml, "not slow", "", "", "", "", "--max-worker-restart 0"],
34
- [actions-39.yaml, "", "", "", "", "", ""],
35
- [actions-310-numpydev.yaml, "not slow and not network", "", "", "", "deprecate", "-W error"],
36
- [actions-310.yaml, "", "", "", "", "", ""],
37
- ]
27
+ env_file : [actions-38.yaml, actions-39.yaml, actions-310.yaml]
28
+ pattern : ["not single_cpu", "single_cpu"]
29
+ include :
30
+ - env_file : actions-38-downstream_compat.yaml
31
+ pattern : " not slow and not network and not single_cpu"
32
+ pytest_target : " pandas/tests/test_downstream.py"
33
+ - env_file : actions-38-minimum_versions.yaml
34
+ pattern : " not slow and not network and not single_cpu"
35
+ - env_file : actions-38.yaml
36
+ pattern : " not slow and not network and not single_cpu"
37
+ extra_apt : " language-pack-it"
38
+ lang : " it_IT.utf8"
39
+ lc_all : " it_IT.utf8"
40
+ - env_file : actions-38.yaml
41
+ pattern : " not slow and not network and not single_cpu"
42
+ extra_apt : " language-pack-zh-hans"
43
+ lang : " zh_CN.utf8"
44
+ lc_all : " zh_CN.utf8"
45
+ - env_file : actions-pypy-38.yaml
46
+ pattern : " not slow and not network and not single_cpu"
47
+ test_args : " --max-worker-restart 0"
48
+ - env_file : actions-310-numpydev.yaml
49
+ pattern : " not slow and not network and not single_cpu"
50
+ pandas_testing_mode : " deprecate"
51
+ test_args : " -W error"
38
52
fail-fast : false
39
53
env :
40
- ENV_FILE : ci/deps/${{ matrix.settings[0] }}
41
- PATTERN : ${{ matrix.settings[1] }}
42
- EXTRA_APT : ${{ matrix.settings[2] }}
43
- LANG : ${{ matrix.settings[3] }}
44
- LC_ALL : ${{ matrix.settings[4] }}
45
- PANDAS_TESTING_MODE : ${{ matrix.settings[5] }}
46
- TEST_ARGS : ${{ matrix.settings[6] }}
47
- PYTEST_TARGET : pandas
48
- IS_PYPY : ${{ contains(matrix.settings[0], 'pypy') }}
54
+ ENV_FILE : ci/deps/${{ matrix.env_file }}
55
+ PATTERN : ${{ matrix.pattern }}
56
+ EXTRA_APT : ${{ matrix.extra_apt || '' }}
57
+ LANG : ${{ matrix.lang || '' }}
58
+ LC_ALL : ${{ matrix.lc_all || '' }}
59
+ PANDAS_TESTING_MODE : ${{ matrix.pandas_testing_mode || '' }}
60
+ TEST_ARGS : ${{ matrix.test_args || '' }}
61
+ PYTEST_WORKERS : ${{ contains(matrix.pattern, 'not single_cpu') && 'auto' || '1' }}
62
+ PYTEST_TARGET : ${{ matrix.pytest_target || 'pandas' }}
63
+ IS_PYPY : ${{ contains(matrix.env_file, 'pypy') }}
49
64
# TODO: re-enable coverage on pypy, its slow
50
- COVERAGE : ${{ !contains(matrix.settings[0] , 'pypy') }}
65
+ COVERAGE : ${{ !contains(matrix.env_file , 'pypy') }}
51
66
concurrency :
52
67
# https://github.community/t/concurrecy-not-work-for-push/183068/7
53
- group : ${{ github.event_name == 'push' && github.run_number || github.ref }}-${{ matrix.settings[0] }}-${{ matrix.settings[1] }}-${{ matrix.settings[2] }}
68
+ group : ${{ github.event_name == 'push' && github.run_number || github.ref }}-${{ matrix.env_file }}-${{ matrix.pattern }}-${{ matrix.extra_apt || '' }}
54
69
cancel-in-progress : true
55
70
56
71
services :
@@ -128,8 +143,7 @@ jobs:
128
143
shell : bash
129
144
run : |
130
145
# TODO: re-enable cov, its slowing the tests down though
131
- # TODO: Unpin Cython, the new Cython 0.29.26 is causing compilation errors
132
- pip install Cython==0.29.25 numpy python-dateutil pytz pytest>=6.0 pytest-xdist>=1.31.0 hypothesis>=5.5.3
146
+ pip install Cython numpy python-dateutil pytz pytest>=6.0 pytest-xdist>=1.31.0 hypothesis>=5.5.3
133
147
if : ${{ env.IS_PYPY == 'true' }}
134
148
135
149
- name : Build Pandas
0 commit comments