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

test: DBTP-1550 Add Codecov #278

Merged
merged 17 commits into from
Nov 14, 2024
Merged

test: DBTP-1550 Add Codecov #278

merged 17 commits into from
Nov 14, 2024

Conversation

WillGibson
Copy link
Contributor

@WillGibson WillGibson commented Nov 12, 2024

@codecov-commenter
Copy link

codecov-commenter commented Nov 12, 2024

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@WillGibson WillGibson force-pushed the DBTP-1550-Add-codecov branch from 30937be to 4411efe Compare November 12, 2024 16:55
@WillGibson WillGibson changed the title DBTP-1550 Add Codecov test: DBTP-1550 Add Codecov Nov 12, 2024
fail-fast: false
matrix:
# If the matrix, you must also update after_n_builds in codecov.yml to match the number of times the test suite is run
python-version: ["3.12", "3.11"]
Copy link
Contributor Author

@WillGibson WillGibson Nov 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did try slipping 3.13 in, but this felt out of scope...

_____________ ERROR collecting postgres/tests/test_manage_users.py _____________
ImportError while importing test module '/home/runner/work/terraform-platform-modules/terraform-platform-modules/postgres/tests/test_manage_users.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/hostedtoolcache/Python/3.13.0/x64/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
postgres/tests/test_manage_users.py:10: in <module>
    from postgres.manage_users import create_or_update_db_user, create_or_update_user_secret, handler
postgres/manage_users.py:3: in <module>
    import psycopg2
../../../.cache/pypoetry/virtualenvs/non-package-mode-TIbHNkaA-py3.13/lib/python3.13/site-packages/psycopg2/__init__.py:51: in <module>
    from psycopg2._psycopg import (                     # noqa
E   ImportError: /home/runner/.cache/pypoetry/virtualenvs/non-package-mode-TIbHNkaA-py3.13/lib/python3.13/site-packages/psycopg2/_psycopg.cpython-[31](https://github.com/uktrade/terraform-platform-modules/actions/runs/11802000815/job/32876648734#step:6:32)3-x86_64-linux-gnu.so: undefined symbol: _PyInterpreterState_Get
- generated xml file: /home/runner/work/terraform-platform-modules/terraform-platform-modules/junit.xml -

Something for another pull request.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we also suuport a fewer older version of python, or is this based off the "2 latest versions" discusions we have been having

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The lambda uses Python 3.11 at the moment. I thought it would be worth testing newer versions too so we get early headsup if we write something that won't work with them.

@WillGibson WillGibson marked this pull request as ready for review November 13, 2024 12:43
@WillGibson WillGibson requested a review from a team November 13, 2024 12:43
Copy link

@a-gleeson a-gleeson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@WillGibson WillGibson merged commit ddd4a6f into main Nov 14, 2024
47 checks passed
@WillGibson WillGibson deleted the DBTP-1550-Add-codecov branch November 14, 2024 16:33
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