Skip to content

Not working with pyproject.toml #18

Open

Description

@igormcsouza

Hello! Thank you for your wonderful job! I had troubles using the pyproject.toml version as explained here https://github.com/marketplace/actions/coveralls-python#pyprojecttoml. I tried everything. I installed coverage with [toml] extra, but it stills output the message..

Can't read 'pyproject.toml' without TOML support. Install with [toml] extra

Any ideas on the matter? It's working fine now I'm using .coveragerc file! But I really want to use the pyproject.tom versionl!!

This is the repo if will help (https://github.com/igormcsouza/pymetaheuristics)

Activity

  1. igormcsouza commented on Jun 3, 2021

    @igormcsouza
    Author

    I just see this PR < #16 > might be the solution!!!

  2. mcarans commented on Oct 14, 2021

    @mcarans

    I hope that PR will be merged soon assuming it works.

  3. adrienverge commented on Apr 14, 2023

    @adrienverge

    Hello, I have the same problem.

    The workaround I found is to dynamically create a temporary .coveragerc file. For example:

          - run: pip install coverage
          # Workaround for https://github.com/AndreMiras/coveralls-python-action/issues/18
          - run: echo -e "[run]\nrelative_files = True" > .coveragerc
          - run: coverage run -m unittest discover
          - name: Coveralls
            uses: AndreMiras/coveralls-python-action@develop
  4. djhoese commented on Jul 24, 2023

    @djhoese
    Contributor

    Now that #24 has been merged, TOML files should work.

  5. igormcsouza commented on Aug 7, 2023

    @igormcsouza
    Author

    Thank you! I'll test to see the improvements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions