Protocol relative urls #181
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: Robotdashboard Tests | |
| on: | |
| pull_request: | |
| jobs: | |
| python-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements-dev.txt | |
| - name: Run Python unit tests | |
| run: | | |
| bash scripts/python-tests.sh | |
| - name: Upload coverage report | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-report | |
| path: results/coverage.xml | |
| javascript-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '24' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run JavaScript unit tests | |
| run: | | |
| bash scripts/javascript-tests.sh | |
| robot-tests: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: mcr.microsoft.com/playwright:v1.56.0-jammy | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '24' | |
| - name: Ensure pip cache directory exists | |
| run: mkdir -p ~/.cache/pip | |
| - name: Ensure Playwright cache directory exists | |
| run: mkdir -p ~/.cache/ms-playwright | |
| - name: Cache pip packages | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-pip-${{ hashFiles('requirements-test.txt') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pip- | |
| - name: Cache Playwright browsers | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.cache/ms-playwright | |
| key: ${{ runner.os }}-playwright-${{ hashFiles('requirements-test.txt') }} | |
| restore-keys: | | |
| ${{ runner.os }}-playwright- | |
| - name: Ensure pip is installed | |
| run: | | |
| apt-get update | |
| apt-get install -y python3-pip | |
| - name: Install Robot Framework and Python dependencies | |
| run: | | |
| python3 -m pip install --upgrade pip | |
| pip3 install -r requirements-test.txt | |
| - name: Install/Build project | |
| run: | | |
| bash scripts/install.sh | |
| - name: Initialize Browser library | |
| run: | | |
| rfbrowser init | |
| - name: Run Robot Framework tests | |
| run: | | |
| bash scripts/robot-tests.sh | |
| - name: Upload Robot logs | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: robot-results | |
| path: results/ |