bjodah / chempy

⚗ A package useful for chemistry written in Python
BSD 2-Clause "Simplified" License
548 stars 79 forks source link

GitHub Action to lint Python code #213

Closed cclauss closed 1 year ago

cclauss commented 1 year ago

Because drone and travis seem to be on vacation.

Test results: https://github.com/cclauss/chempy/actions

% pytest

============================= test session starts ==============================
platform linux -- Python 3.10.7, pytest-7.1.3, pluggy-1.0.0
rootdir: /home/runner/work/chempy/chempy, configfile: setup.cfg
collected 537 items

chempy/electrochemistry/tests/test_nernst.py ..                          [  0%]
chempy/kinetics/tests/test__native.py ssssssssss                         [  2%]
chempy/kinetics/tests/test__rates.py ..................                  [  5%]
chempy/kinetics/tests/test_arrhenius.py .....                            [  6%]
chempy/kinetics/tests/test_eyring.py ...                                 [  7%]
chempy/kinetics/tests/test_integrated.py ....                            [  7%]
chempy/kinetics/tests/test_ode.py ..........................ssssssss..ss [ 14%]
ssssssss.                                                                [ 16%]
chempy/kinetics/tests/test_rates.py ..................                   [ 19%]
chempy/printing/tests/test_numbers.py ......                             [ 21%]
chempy/printing/tests/test_str.py .                                      [ 21%]
chempy/printing/tests/test_table.py .                                    [ 21%]
chempy/properties/tests/test_gas_sol_electrolytes_schumpe_1993.py .      [ 21%]
chempy/properties/tests/test_sulfuric_acid_density_myhre_1998.py ...     [ 22%]
chempy/properties/tests/test_water_density_tanaka_2001.py .              [ 22%]
chempy/properties/tests/test_water_diffusivity_holz_2000.py ..           [ 22%]
chempy/properties/tests/test_water_permittivity_bradley_pitzer_1979.py . [ 22%]
.                                                                        [ 23%]
chempy/properties/tests/test_water_viscosity_korson_1969.py .            [ 23%]
chempy/tests/test__equilibrium.py ....                                   [ 24%]
chempy/tests/test_chemistry.py ................................          [ 29%]
chempy/tests/test_core.py .                                              [ 30%]
chempy/tests/test_einstein_smoluchowski.py ..                            [ 30%]
chempy/tests/test_electrolytes.py .......                                [ 31%]
chempy/tests/test_equilibria.py .......FF                                [ 33%]
chempy/tests/test_henry.py ...                                           [ 34%]
chempy/tests/test_reactionsystem.py ......................               [ 38%]
chempy/tests/test_solution.py .....                                      [ 39%]
chempy/tests/test_units.py .................................             [ 45%]
chempy/tests/test_util.py ..                                             [ 45%]
chempy/thermodynamics/tests/test_expressions.py .......                  [ 46%]
chempy/util/tests/test_arithmeticdict.py ..............                  [ 49%]
chempy/util/tests/test_expr.py ..................................        [ 55%]
chempy/util/tests/test_graph.py ss                                       [ 56%]
chempy/util/tests/test_numutil.py .                                      [ 56%]
chempy/util/tests/test_parsing.py ...................................... [ 63%]
........................................................................ [ 76%]
........................................................................ [ 90%]
..............................                                           [ 95%]
chempy/util/tests/test_periodic.py ......                                [ 97%]
chempy/util/tests/test_pyutil.py ...                                     [ 97%]
chempy/util/tests/test_regression.py ..                                  [ 97%]
chempy/util/tests/test_rendering.py ..                                   [ 98%]
chempy/util/tests/test_stoich.py ....                                    [ 99%]
chempy/util/tests/test_table.py ..sss                                    [100%]

=========================== short test summary info ============================
FAILED chempy/tests/test_equilibria.py::test_precipitate[NumSys1] - Exception...
FAILED chempy/tests/test_equilibria.py::test_precipitate[NumSys2] - Exception...
============ 2 failed, 502 passed, 33 skipped, 10 warnings in 9.07s ============
bjodah commented 1 year ago

Thank you very much for working on this @cclauss, I've been meaning to get around to migrate to github actions (had gh-actions been around when I configured the CI, I would probably just have used it from the start).

Let me know if you have any questions, and/or need me to enable anything from the repo admin panels.

cclauss commented 1 year ago

Hi @bjodah I have no questions. Once this is meged, it will start working without any changes to admin settings.

I will create another PR for typos.

bjodah commented 1 year ago

That's great. Thanks!