-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
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 ☂️ |
30937be
to
4411efe
Compare
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"] |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Addresses https://uktrade.atlassian.net/browse/DBTP-1550
Can be seen in action on https://app.codecov.io/github/uktrade/terraform-platform-modules/tree/DBTP-1550-Add-codecov