Skip to content

Commit d0a714a

Browse files
committed
Second-attempt: fix automated pytest for pyproject.toml approach.
1 parent 4d188d3 commit d0a714a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/pytest.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ jobs:
2323
- name: Install dependencies
2424
run: |
2525
python -m pip install --upgrade pip
26-
python -m pip install build
27-
python -m build
28-
python -m pip install pytest
26+
python -m pip install .
27+
python -m pip install .[test]
2928
- name: Test with pytest
3029
run: |
3130
pytest

pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,6 @@ classifiers = [
3434
Homepage = "https://github.com/ray310/Panda-Helper"
3535
Repository = "https://github.com/ray310/Panda-Helper"
3636
Issues = "https://github.com/ray310/Panda-Helper/issues"
37+
38+
[project.optional-dependencies]
39+
test = ["pytest>=7.4"]

0 commit comments

Comments
 (0)