[coveralls] Two options for fixing reported paths
by Jiri Kucera
Hello,
those that are using tox for testing system roles and send the test
coverage reports to coveralls.io via coveralls pypi package may struggle
with empty code view in coveralls.io web UI (see network role view for
example[1]).
Since 3.1.0, coveralls has introduced the --basedir option. This option
allows you to strip the base directory from reported paths. To demonstrate
it on network role, if coveralls is run with
$ coveralls --basedir=/home/runner/work/network/network
the reported path will be library/network_connections.py, which is the
existing path on GitHub[2], so the coveralls.io should be able to display a
view showing the lines covered.
Sometimes, sources can be placed inside src/ (or similar) directory. This
can be seen in several pure Python packages. To handle these kind of
situations, PR with --srcdir option support was opened and merged[3]
recently.
This option allow to specify the directory with sources relative to GitHub
project so coveralls.io is able to see them.
Regards
Jiri
[1]
https://coveralls.io/builds/41496934/source?filename=%2Fhome%2Frunner%2Fw...
[2]
https://github.com/linux-system-roles/network/blob/main/library/network_c...
[3] https://github.com/TheKevJames/coveralls-python/pull/306
2 years, 4 months
NOTICE: Fedora 34 - install tox from pip
by Richard Megginson
On Fedora 34, the tox rpm package has added `-s` to the shebang line. This
means that python will not add ~/.local/lib to the sys.path. This means
that tox cannot find tox-lsr installed in ~/.local/lib.
I recommend that you install `tox` using `pip install --force --user tox`
and make sure you use ~/.local/bin/tox - either use that command directly,
or ensure that ~/.local/bin is in your PATH before /usr/bin
2 years, 4 months
Moving IRC to libera.chat
by Richard Megginson
There has been some discussion about moving the #systemroles IRC channel to
libera.chat. I think it is a good idea. Does anyone have an objection?
2 years, 4 months