Skip to content

Commit c4e1db3

Browse files
Fix tox for GitHub CI and Ubuntu 24.04
1 parent 855cb9b commit c4e1db3

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pytest.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
required_plugins =
1212
pytest_httpserver
1313
pytest-forked
14-
pytest-localftpserver
1514
pytest-pythonpath
1615
pytest-subprocess
1716
pytest-timeout

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# 2. python 3.6 test and pylint warnings from changed lines
66
# 3. pytype (needs Python 3.8 for best results)
77
# 4. pyre and pyright checks, pytest test report as markdown for GitHub Actions summary
8-
envlist = py38-covcombine-check, py36-lint-test, py310-pytype, py311-pyre-mdreport
8+
envlist = py38-covcombine-check, py311-lint-test, py310-pytype, py311-mdreport
99
isolated_build = true
1010
skip_missing_interpreters = true
1111
requires =
@@ -28,9 +28,9 @@ commands =
2828
# https://github.com/actions/toolkit/blob/main/docs/commands.md#problem-matchers
2929
echo "::add-matcher::.github/workflows/PYTHONWARNINGS-problemMatcher.json"
3030
pytest --cov -v --new-first -x --show-capture=all -rA
31-
sh -c 'ls -l {env:COVERAGE_FILE}'
3231
sh -c 'if [ -n "{env:PYTEST_MD_REPORT_OUTPUT}" -a -n "{env:GITHUB_STEP_SUMMARY}" ];then \
33-
sed -i "s/tests\(.*py\)/[&](&)/" {env:PYTEST_MD_REPORT_OUTPUT}; sed "/title/,/\/style/d" \
32+
mkdir -p $(dirname "{env:GITHUB_STEP_SUMMARY:.git/sum.md}"); \
33+
sed "s/tests\(.*py\)/[&](&)/" \
3434
{env:PYTEST_MD_REPORT_OUTPUT} >{env:GITHUB_STEP_SUMMARY:.git/sum.md};fi'
3535

3636
[testenv]

0 commit comments

Comments
 (0)