Skip to content
  1. Mar 17, 2023
  2. Mar 01, 2023
  3. Feb 17, 2023
  4. Feb 11, 2023
  5. Feb 05, 2023
  6. Dec 03, 2022
  7. May 12, 2022
  8. Mar 29, 2022
  9. Feb 28, 2022
  10. Feb 16, 2022
  11. Oct 20, 2021
    • hydrargyrum's avatar
      tests: use pytest instead of nose · 74c24521
      hydrargyrum authored
      Warning: the reported coverage is much lower than before. But when reading
      the previous reports, it seems the coverage was overestimated by large,
      mostly because old report did not consider all files in woob dir.
      
      Also for some reason pytest's JUnit XML uses `modules.<name>.<class>`
      with the `modules.` prefix so we take it into account in testing grid.
      74c24521
  12. Sep 21, 2021
  13. Oct 28, 2020
    • ntome's avatar
      tools/hooks/run-flake8.py: use flake8-import-order plugin · 9c714c91
      ntome authored and hydrargyrum's avatar hydrargyrum committed
      But it's pep8 rule keeps application-imports in the same group as
      relative-imports. Changing it is not a matter of configuration but defining
      our own style, which is tedious as it would require a setuptools entrypoint
      just for that, so we inject manually the style.
      9c714c91
  14. Aug 26, 2020
  15. May 07, 2020
  16. Apr 29, 2020
  17. Mar 24, 2020
  18. Dec 14, 2019
  19. Jan 02, 2019
  20. Aug 30, 2017
  21. Jul 31, 2017
  22. Dec 24, 2016
    • Phyks (Lucas Verney)'s avatar
      6f700b99
    • Phyks (Lucas Verney)'s avatar
      Gitlab-CI continuous integration · 434c0f15
      Phyks (Lucas Verney) authored
      This commit adds the necessary files to run the CI using Gitlab-CI. For
      now, it checks that Weboob builds, then runs the linting script
      (checking that every module as an icon and some tests + PyFlakes) and
      the unittests. Most of modules unittests cannot run because there is no
      backend configured.
      
      Some changes were needed in the pre-existing scripts:
      * Edit `weboob_lint` to exit with non-zero code if it finds modules
      without icons or tests, so that the build could fail in such a case.
      * Edit `run_tests.sh` to set correct exit code on failure and rework
      generation of XUNIT output. Also added some doc about useful environment
      variables. Added a way to generate an xunit output file when running modules
      unittests, passing a `XUNIT_OUT` env variable to `run_tests.sh` script.
      * Modification of `setup.cfg` and `run_tests` scripts to handle code
      coverage generation. The matching regex in Gitlab for the total code
      coverage is `TOTAL: (\d+\%\s*)$)`.
      
      I also added a script to generate a JSON module status matrix from
      modules unittests, ready to be sent to a
      [Weboob-CI](https://github.com/Phyks/weboob-ci) instance.
      
      NOTE: Required Python modules are taken from the `setup.py` script.
      `.ci/requirements.txt` contains the requirements to run the unittests
      and the CI, whereas `.ci/requirements_modules.txt` contains the specific
      Python modules required at runtime by Weboob modules. The latter could
      eventually be replaced by a proper call to `debpydep` script.
      434c0f15