You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(ci): run tests against multiple versions (#51)
* feat(ci): run tests against multiple versions
* add uuid to test
* fix and lint
* fix table name
* fix type
* Update DEVELOPER.md
* Update DEVELOPER.md
This library follows [Semantic Versioning](http://semver.org/).
6
+
7
+
## Processes
8
+
9
+
### Conventional Commit messages
10
+
11
+
This repository uses tool [Release Please](https://github.com/googleapis/release-please) to create GitHub and PyPi releases. It does so by parsing your
12
+
git history, looking for [Conventional Commit messages](https://www.conventionalcommits.org/),
13
+
and creating release PRs.
14
+
15
+
Learn more by reading [How should I write my commits?](https://github.com/googleapis/release-please?tab=readme-ov-file#how-should-i-write-my-commits)
16
+
17
+
## Testing
18
+
19
+
### Run tests locally
20
+
21
+
1. Set environment variables for `INSTANCE_ID`, `DB_NAME`, `TABLE_NAME`, `REGION`, `DB_USER`, `DB_PASSWORD`
22
+
23
+
1. Run pytest to automatically run all tests:
24
+
25
+
```bash
26
+
pytest
27
+
```
28
+
29
+
### CI Platform Setup
30
+
31
+
Cloud Build is used to run tests against Google Cloud resources intest project: langchain-cloud-sql-testing.
32
+
Each test has a corresponding Cloud Build trigger, see [all triggers][triggers].
33
+
These tests are registered as required tests in`.github/sync-repo-settings.yaml`.
34
+
35
+
#### Trigger Setup
36
+
37
+
Cloud Build triggers (for Python versions 3.8 to 3.11) were created with the following specs:
38
+
39
+
```YAML
40
+
name: mysql-integration-test-pr-py38
41
+
description: Run integration tests on PR for Python 3.8
0 commit comments