Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Python 3 to test matrix #29

Merged
merged 11 commits into from
Apr 8, 2022
Merged

Add Python 3 to test matrix #29

merged 11 commits into from
Apr 8, 2022

Conversation

abitrolly
Copy link
Contributor

This removes Python matrix from actions workflow, because tested Python versions are configured in tox.ini.

Matrix is configured in tox
@fschulze
Copy link
Owner

fschulze commented Apr 5, 2022

I like to keep the matrix as it is easier to see which version fails. You might want to add the explicit environment instead, see:
https://github.com/devpi/devpi/blob/main/.github/workflows/main.yml#L61
https://github.com/devpi/devpi/blob/main/.github/workflows/main.yml#L85

@abitrolly abitrolly changed the title Rename workflow to test-with-tox Add Python 3 to test matrix Apr 5, 2022
@abitrolly
Copy link
Contributor Author

I added Python 3.10 to the tox matrix and now tests fail. I am adding GitHub Action environment for selecting Python for tox.

This allows to run in generic environments, such as `py39`

    tox -e py39
@abitrolly
Copy link
Contributor Author

Added tox + GitHub Actions matrix. Now need to fix the tests.

@nhoening
Copy link

nhoening commented Apr 5, 2022

#14 might have some useful things to work from. I only had one problem with that work, see comments.

Convert `bytes` to string before parsing

        def parse_graph(graph):
            result = {}
    >       sio = StringIO(graph.create_plain())
    E       TypeError: initial_value must be str or None, not bytes
@abitrolly
Copy link
Contributor Author

All Python 3 tests fixed. @fschulze this is ready for review.

@fschulze fschulze merged commit 716d47f into fschulze:master Apr 8, 2022
@abitrolly abitrolly deleted the patch-1 branch April 8, 2022 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants