Enhance Testing with MySQL8 & Update GitHub Actions #484
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Add MySQL-8 based test (with percona-8.0)
Since below two features need to test based on MySQL version 8,
this PR added percona-8.0 docker and test based on MySQL version 8.
Update github actions version
This PR also updates GitHub Actions to use the latest versions of actions/checkout and actions/setup-python
in preparation for the end-of-life of Node 16 in September 2023.
The default runtime of Node 16 will reach its end-of-life on 11 Sep 2023.
To adapt to this change and benefit from the features and optimizations in the newer GitHub Actions versions.
Change
Add MySQL-8 based test (with percona-8.0)
PyMySQLReplicationVersion8TestCase
class inpymysqlreplication/tests/base.py
from
base.PyMySQLReplicationTestCase
tobase.PyMySQLReplicationVersion8TestCase
TestDataTypeVersion8
class inpymysqlreplication/tests/test_data_type.py
Update github actions version
The addition of a new Docker container for Percona 8.0 has led to an increase in the initialization and build time. This caused the GitHub Actions test suite to initially exceed the maximum execution time of 2 minutes. To accommodate the new test requirements, the time limit for the GitHub Actions has been increased to 3 minutes.
Benefits
Add MySQL-8 based test (with percona-8.0)
Update github actions version
References
Update github actions version