Skip to content

Commit 9ac3b6b

Browse files
FloLeyclaude
andcommitted
Fix license validation and improve CI workflow
- Change license from {text="MIT"} to "MIT" for setuptools compatibility - Add fail-fast: false to see all matrix results even if one fails - Use pip cache and editable install for faster CI - Install dependencies more efficiently 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f286471 commit 9ac3b6b

2 files changed

Lines changed: 27 additions & 27 deletions

File tree

.github/workflows/tests.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,33 @@ jobs:
1010
test:
1111
runs-on: ubuntu-latest
1212
strategy:
13+
fail-fast: false
1314
matrix:
1415
python-version: ["3.9", "3.10", "3.11", "3.12"]
1516

1617
steps:
17-
- uses: actions/checkout@v4
18-
19-
- name: Set up Python ${{ matrix.python-version }}
20-
uses: actions/setup-python@v5
21-
with:
22-
python-version: ${{ matrix.python-version }}
23-
24-
- name: Install dependencies
25-
run: |
26-
python -m pip install --upgrade pip
27-
pip install --upgrade setuptools wheel
28-
pip install .[token-counting] pytest pathspec
29-
30-
- name: Run tests
31-
run: |
32-
pytest tests/ -v
33-
34-
- name: Lint with ruff
35-
run: |
36-
pip install ruff
37-
ruff check src/ --output-format=concise
38-
39-
- name: Type check with mypy (optional)
40-
run: |
41-
pip install mypy
42-
mypy src/dumpcode/ --ignore-missing-imports
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
cache: pip
25+
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
python -m pip install -e ".[token-counting]"
30+
python -m pip install pytest ruff mypy
31+
32+
- name: Run tests
33+
run: |
34+
pytest tests/ -v
35+
36+
- name: Lint with ruff
37+
run: |
38+
ruff check src/ --output-format=concise
39+
40+
- name: Type check with mypy (optional)
41+
run: |
42+
mypy src/dumpcode/ --ignore-missing-imports

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ authors = [
1111
{name = "Florent Lejoly", email = "florent.lejoly@gmail.com"}
1212
]
1313
readme = "README.md"
14-
license = {text = "MIT"}
14+
license = "MIT"
1515
license-files = ["LICENSE"]
1616
classifiers = [
1717
"Programming Language :: Python :: 3",

0 commit comments

Comments
 (0)