fix cli #16
This file contains hidden or 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
name: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install uv | |
run: pip install uv | |
- name: Set UV_HTTP_TIMEOUT | |
run: echo "UV_HTTP_TIMEOUT=120" >> $GITHUB_ENV | |
- name: Install project dependencies | |
run: uv sync | |
- name: Ensure all dependencies (including test/dev) are installed | |
run: uv sync --dev | |
- name: Install test dependencies (force ensure) | |
run: uv pip install pytest pytest-asyncio pytest-cov coverage | |
- name: Install Pl | |
echo 'PW_CHROMIUM_ARGS=--no-sandbox' >> $GITHUB_ENVaywright browsers | |
run: | | |
uv run playwright install --with-deps chromium | |
- name: Run tests with coverage | |
run: uv run python -m pytest --cov=browser_fastmcp_server.py --cov=main.py --cov-report=xml --cov-report=term test_browser_fastmcp_client.py test_browser_test.py test_browser_workflow_test.py | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
files: ./coverage.xml | |
fail_ci_if_error: true | |
token: ${{ secrets.CODECOV_TOKEN }} |