chore: Fix performance tests #883
Workflow file for this run
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: Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: 'ubuntu-latest' | |
| python-version: '3.10' | |
| rf-version: '5.*' | |
| - os: 'ubuntu-latest' | |
| python-version: '3.11' | |
| rf-version: '6.*' | |
| - os: 'ubuntu-latest' | |
| python-version: '3.12' | |
| rf-version: '7.*' | |
| - os: 'ubuntu-latest' | |
| python-version: '3.13' | |
| rf-version: '7.*' | |
| - os: 'windows-latest' | |
| python-version: '3.13' | |
| rf-version: '7.*' | |
| - os: 'ubuntu-latest' | |
| python-version: '3.14' | |
| rf-version: '7.*' | |
| runs-on: ${{ matrix.os }} | |
| # Skip for documentation-only builds | |
| if: > | |
| github.event_name != 'pull_request' || | |
| !contains(github.event.pull_request.labels.*.name, 'docs-only') | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 2 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v3 | |
| with: | |
| version: "0.9.2" | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install the project | |
| run: | | |
| uv sync --all-extras --dev | |
| uv add robotframework==${{ matrix.rf-version }} | |
| - name: Run tests | |
| run: | | |
| uv run robot --version || true | |
| uv run coverage run --source src/robocop -m pytest -v | |
| - name: Calculate coverage | |
| run: uv run coverage report |