Skip to content

Commit 784225e

Browse files
authored
fix: pytest usage in CI (#256)
1 parent bad9f77 commit 784225e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ jobs:
2525
2626
- name: Install sphinx dependencies
2727
run: >-
28-
python -m
28+
python3 -m
2929
pip install
3030
sphinx
3131
sphinx-argparse
3232
--user
3333
3434
- name: Install tldr dependencies
3535
run: >-
36-
python -m
36+
python3 -m
3737
pip install
3838
-r
3939
requirements.txt
@@ -47,7 +47,7 @@ jobs:
4747
run: python3 -m flake8
4848

4949
- name: Run test suite
50-
run: python3 setup.py pytest
50+
run: python3 -m pytest tests/
5151

5252
- name: Test tldr cli
5353
run: |

tests/test_tldr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def test_get_commands(monkeypatch, tmp_path):
142142
Path.mkdir(cache_default, parents=True)
143143
Path.touch(cache_default / "lspci.md")
144144

145-
monkeypatch.setenv("HOME", tmp_path)
145+
monkeypatch.setenv("HOME", str(tmp_path))
146146

147147
result = tldr.get_commands(platforms=["linux"])
148148

0 commit comments

Comments
 (0)