@@ -11,10 +11,10 @@ permissions: {}
11
11
jobs :
12
12
test :
13
13
env :
14
- REQUIRE_ASPELL : true
14
+ REQUIRE_ASPELL : ${{ startsWith(matrix.os, 'ubuntu') }}
15
15
RUFF_OUTPUT_FORMAT : github
16
16
# Make sure we're using the latest aspell dictionary
17
- runs-on : ubuntu-24.04-arm
17
+ runs-on : ${{ matrix.os }}
18
18
timeout-minutes : 10
19
19
strategy :
20
20
fail-fast : false
@@ -26,12 +26,18 @@ jobs:
26
26
- " 3.11"
27
27
- " 3.12"
28
28
- " 3.13"
29
- no-toml :
30
- - " "
29
+ kind :
30
+ - " standard"
31
+ os :
32
+ - " ubuntu-24.04-arm"
31
33
include :
32
34
- python-version : " 3.10"
33
- no-toml : " no-toml"
34
- name : ${{ matrix.python-version }} ${{ matrix.no-toml }}
35
+ kind : " no-toml"
36
+ os : " ubuntu-24.04-arm"
37
+ - python-version : " 3.13"
38
+ kind : " standard"
39
+ os : " windows-latest"
40
+ name : " ${{ matrix.python-version }} ${{ matrix.kind }} ${{ matrix.os }}"
35
41
steps :
36
42
- uses : actions/checkout@v4
37
43
with :
@@ -42,25 +48,32 @@ jobs:
42
48
python-version : ${{ matrix.python-version }}
43
49
allow-prereleases : true
44
50
- run : sudo apt-get install libaspell-dev aspell-en
51
+ if : startsWith(matrix.os, 'ubuntu')
45
52
- name : Install dependencies
53
+ shell : bash -e {0}
46
54
run : |
47
55
python --version # just to check
48
56
pip install --upgrade pip wheel # upgrade to latest pip find 3.5 wheels; wheel to avoid errors
49
57
pip install --upgrade "setuptools!=47.2.0" docutils setuptools_scm[toml] twine
50
- pip install aspell-python-py3
51
58
pip install -e ".[dev]" # install the codespell dev packages
59
+ - run : pip install aspell-python-py3
60
+ if : startsWith(matrix.os, 'ubuntu')
52
61
- run : codespell --help
53
62
- run : codespell --version
54
63
- run : make check
64
+ if : startsWith(matrix.os, 'ubuntu')
65
+ - run : pytest codespell_lib
66
+ if : startsWith(matrix.os, 'windows')
55
67
- uses : codecov/codecov-action@v5
56
68
with :
57
69
token : ${{ secrets.CODECOV_TOKEN }}
58
70
# tomli should not be required for the next two steps (and make sure it's not)
59
71
- run : pip uninstall -yq tomli
60
- if : ${{ matrix.no-toml == 'no-toml' }}
72
+ if : ${{ matrix.kind == 'no-toml' }}
61
73
- run : codespell --check-filenames --skip="./.*,./build/*,./codespell_lib/data/*,./codespell_lib/tests/test_basic.py,./example/code.c,./junit-results.xml,*.egg-info/*,*.pyc,*.sig,pyproject-codespell.precommit-toml,README.rst,"
62
74
# this file has an error
63
75
- run : " ! codespell codespell_lib/tests/test_basic.py"
76
+ shell : bash -e {0}
64
77
65
78
make-check-dictionaries :
66
79
runs-on : ubuntu-latest
0 commit comments