Skip to content

Commit 91ca675

Browse files
authored
MAINT: Rename CI file and run name (#3667)
1 parent da0e111 commit 91ca675

File tree

2 files changed

+21
-38
lines changed

2 files changed

+21
-38
lines changed

.github/workflows/codespell-windows.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/codespell-private.yml renamed to .github/workflows/tests.yml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ permissions: {}
1111
jobs:
1212
test:
1313
env:
14-
REQUIRE_ASPELL: true
14+
REQUIRE_ASPELL: ${{ startsWith(matrix.os, 'ubuntu') }}
1515
RUFF_OUTPUT_FORMAT: github
1616
# Make sure we're using the latest aspell dictionary
17-
runs-on: ubuntu-24.04-arm
17+
runs-on: ${{ matrix.os }}
1818
timeout-minutes: 10
1919
strategy:
2020
fail-fast: false
@@ -26,12 +26,18 @@ jobs:
2626
- "3.11"
2727
- "3.12"
2828
- "3.13"
29-
no-toml:
30-
- ""
29+
kind:
30+
- "standard"
31+
os:
32+
- "ubuntu-24.04-arm"
3133
include:
3234
- 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 }}"
3541
steps:
3642
- uses: actions/checkout@v4
3743
with:
@@ -42,25 +48,32 @@ jobs:
4248
python-version: ${{ matrix.python-version }}
4349
allow-prereleases: true
4450
- run: sudo apt-get install libaspell-dev aspell-en
51+
if: startsWith(matrix.os, 'ubuntu')
4552
- name: Install dependencies
53+
shell: bash -e {0}
4654
run: |
4755
python --version # just to check
4856
pip install --upgrade pip wheel # upgrade to latest pip find 3.5 wheels; wheel to avoid errors
4957
pip install --upgrade "setuptools!=47.2.0" docutils setuptools_scm[toml] twine
50-
pip install aspell-python-py3
5158
pip install -e ".[dev]" # install the codespell dev packages
59+
- run: pip install aspell-python-py3
60+
if: startsWith(matrix.os, 'ubuntu')
5261
- run: codespell --help
5362
- run: codespell --version
5463
- run: make check
64+
if: startsWith(matrix.os, 'ubuntu')
65+
- run: pytest codespell_lib
66+
if: startsWith(matrix.os, 'windows')
5567
- uses: codecov/codecov-action@v5
5668
with:
5769
token: ${{ secrets.CODECOV_TOKEN }}
5870
# tomli should not be required for the next two steps (and make sure it's not)
5971
- run: pip uninstall -yq tomli
60-
if: ${{ matrix.no-toml == 'no-toml' }}
72+
if: ${{ matrix.kind == 'no-toml' }}
6173
- 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,"
6274
# this file has an error
6375
- run: "! codespell codespell_lib/tests/test_basic.py"
76+
shell: bash -e {0}
6477

6578
make-check-dictionaries:
6679
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)