test: Add --build flag to docker compose up
This commit is contained in:
@@ -30,13 +30,14 @@ jobs:
|
|||||||
uses: hoverkraft-tech/compose-action@3846bcd61da338e9eaaf83e7ed0234a12b099b72 # v2.4.1
|
uses: hoverkraft-tech/compose-action@3846bcd61da338e9eaaf83e7ed0234a12b099b72 # v2.4.1
|
||||||
with:
|
with:
|
||||||
compose-file: "./docker-compose.yml"
|
compose-file: "./docker-compose.yml"
|
||||||
|
up-flags: "--build"
|
||||||
|
|
||||||
- name: Install the latest version of uv
|
- name: Install the latest version of uv
|
||||||
uses: astral-sh/setup-uv@3259c6206f993105e3a61b142c2d97bf4b9ef83d # v7.1.0
|
uses: astral-sh/setup-uv@3259c6206f993105e3a61b142c2d97bf4b9ef83d # v7.1.0
|
||||||
|
|
||||||
- name: Install Playwright dependencies
|
- name: Install Playwright dependencies
|
||||||
run: |
|
run: |
|
||||||
uv run playwright install --with-deps
|
uv run playwright install firefox --with-deps
|
||||||
|
|
||||||
- name: Wait for service to be ready
|
- name: Wait for service to be ready
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -145,6 +145,7 @@ OAuth integration tests support both **automated** (Playwright) and **interactiv
|
|||||||
- Fixtures: `interactive_oauth_token`, `nc_oauth_client_interactive`, `nc_mcp_oauth_client_interactive`
|
- Fixtures: `interactive_oauth_token`, `nc_oauth_client_interactive`, `nc_mcp_oauth_client_interactive`
|
||||||
- Requires: User to complete browser-based login when prompted
|
- Requires: User to complete browser-based login when prompted
|
||||||
- Useful for: Debugging OAuth flows, testing with 2FA, local development
|
- Useful for: Debugging OAuth flows, testing with 2FA, local development
|
||||||
|
- **Automatically skipped in GitHub Actions CI** - Interactive fixtures check for `GITHUB_ACTIONS` environment variable
|
||||||
- Example:
|
- Example:
|
||||||
```bash
|
```bash
|
||||||
# Run OAuth tests with interactive flow (will open browser and wait for manual login)
|
# Run OAuth tests with interactive flow (will open browser and wait for manual login)
|
||||||
@@ -156,6 +157,11 @@ OAuth integration tests support both **automated** (Playwright) and **interactiv
|
|||||||
- OAuth server runs on port 8001 (regular MCP on 8000)
|
- OAuth server runs on port 8001 (regular MCP on 8000)
|
||||||
- Both flows register OAuth clients dynamically using Nextcloud's OIDC provider
|
- Both flows register OAuth clients dynamically using Nextcloud's OIDC provider
|
||||||
|
|
||||||
|
**CI/CD Considerations:**
|
||||||
|
- Interactive OAuth tests are automatically skipped when `GITHUB_ACTIONS` environment variable is set
|
||||||
|
- Automated Playwright tests will run in CI/CD environments
|
||||||
|
- Use Firefox browser in CI: `--browser firefox` (Chromium may have issues with localhost redirects)
|
||||||
|
|
||||||
### Configuration Files
|
### Configuration Files
|
||||||
|
|
||||||
- **`pyproject.toml`** - Python project configuration using uv for dependency management
|
- **`pyproject.toml`** - Python project configuration using uv for dependency management
|
||||||
|
|||||||
Reference in New Issue
Block a user