Skip to content

Commit fb209f9

Browse files
committed
CI: Don't install and run proselint on older versions of Python
proselint >= 0.16 requires Python 3.10 or higher.
1 parent c05a147 commit fb209f9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,15 @@ jobs:
7474
pip install --editable=.[test,develop]
7575
7676
- name: Run linter and software tests
77+
if: matrix.python-version != '3.7' && matrix.python-version != '3.8' && matrix.python-version != '3.9'
7778
run: poe check
7879

80+
- name: Run software tests
81+
if: matrix.python-version == '3.7' && matrix.python-version == '3.8' && matrix.python-version == '3.9'
82+
run: poe test
83+
7984
- name: Upload coverage to Codecov
85+
if: matrix.python-version != '3.7' && matrix.python-version != '3.8' && matrix.python-version != '3.9'
8086
uses: codecov/codecov-action@v5
8187
env:
8288
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ dependencies = [
6666
]
6767
optional-dependencies.develop = [
6868
"poethepoet<1",
69-
"proselint>=0.16,<1",
69+
"proselint>=0.16,<1; python_version>='3.10'",
7070
"pyproject-fmt<3",
7171
"ruff<0.15",
7272
"validate-pyproject<1",

0 commit comments

Comments
 (0)