-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* cicd: Add dependency.toml files to integrate dependency cascade * cicd: Isolate Python SDK testing into a separate action * cicd: Change client tests to use matrix strategy * chore: Reformat failing file * fix: CICD typo * cicd: Change matrix strategy * fix: Typo in CICD * cicd: rework all quality jobs to be ran in parallel * cicd: Isolate test env cleanup into its own action * cicd: Isolate test env setup into its own action * chore: Rename python sdk test action * cicd: Improve documentation for publish jobs * cicd: Improve docs for quality jobs * cicd: Remove matrix strategy from CICD tests
- Loading branch information
1 parent
c73b761
commit 0a7785a
Showing
9 changed files
with
175 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: 'Cleanup Test Environment' | ||
description: 'Cleans up the test environment' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Cleanup test environment | ||
shell: bash | ||
run: | | ||
cd client_sdks | ||
docker compose -f docker-compose.test.yml down |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: 'Setup Test Environment' | ||
description: 'Sets up the test environment with Docker and database' | ||
|
||
inputs: | ||
artifact-path: | ||
description: 'Path to the Docker image artifact' | ||
required: true | ||
default: '/tmp' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Download Docker image | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: app-image | ||
path: ${{ inputs.artifact-path }} | ||
|
||
- name: Load Docker image | ||
shell: bash | ||
run: docker load --input ${{ inputs.artifact-path }}/app-image.tar | ||
|
||
- name: Start test environment | ||
shell: bash | ||
run: | | ||
cd client_sdks | ||
docker compose -f docker-compose.test.yml up -d --wait | ||
- name: Migrate database | ||
shell: bash | ||
run: | | ||
cd client_sdks | ||
docker compose -f docker-compose.test.yml exec tacoq /bin/bash -c " | ||
cargo install sqlx-cli --no-default-features --features postgres && | ||
cargo sqlx database create && | ||
cargo sqlx migrate run --source ./server/libs/db-common/migrations | ||
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: 'Python SDK Test Steps' | ||
description: 'Runs tests for the Python SDK' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.x" | ||
|
||
- name: Install UV | ||
shell: bash | ||
run: curl -LsSf https://astral.sh/uv/install.sh | sh | ||
|
||
- name: Install dependencies | ||
shell: bash | ||
run: | | ||
cd client_sdks/python | ||
uv sync --dev | ||
- name: Run tests | ||
shell: bash | ||
env: | ||
MANAGER_TEST_URL: http://localhost:3000 | ||
BROKER_TEST_URL: amqp://user:password@localhost:5672 | ||
run: | | ||
cd client_sdks/python | ||
uv run pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[module] | ||
name = "clients" | ||
|
||
[dependencies] | ||
manager = { name = "manager" } | ||
|
||
[file_paths] | ||
include = [ | ||
"python/**/*", | ||
"rust/**/*", | ||
"typescript/**/*", | ||
"docker-compose.test.yml", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[module] | ||
name = "server" | ||
|
||
[file_paths] | ||
include = [ | ||
"services/**/*", | ||
"libs/**/*", | ||
] |