env:
COVERAGE_XML_PATH: ${{ runner.temp }}
BABEL_TOX_EXTRA_DEPS: pytest-github-actions-annotate-failures
- LC_ALL: C # Python 3.10.16[pypy-7.3.19-final] in GHA failed with "unsupported locale setting"
- uses: codecov/codecov-action@v5
with:
directory: ${{ runner.temp }}
assert set(cmdinst.add_comments) == {"Bar", "Foo"}
+@pytest.mark.xfail(
+ # Python 3.10.16[pypy-7.3.19-final] in GHA fails with "unsupported locale setting"
+ # in the subprocesses this test spawns. Hard to say why because it doesn't do that
+ # locally.
+ condition=(sys.implementation.name == "pypy" and "BABEL_TOX_INI_DIR" in os.environ),
+ reason="Test will likely fail with 'unsupported locale setting' in subprocesses; see comment",
+)
def test_setuptools_commands(tmp_path, monkeypatch):
"""
Smoke-tests all of the setuptools versions of the commands in turn.