Add editable axis/title labels from plot #107
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: Screenshot tests | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| env: | |
| UV_FROZEN: true | |
| jobs: | |
| test-screenshots: | |
| name: Run screenshot tests | |
| timeout-minutes: 30 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - uses: ./.github/actions/install_dependencies_qt | |
| with: | |
| os: ubuntu-latest | |
| - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 | |
| id: setup_python | |
| with: | |
| python-version: '3.14' | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0 | |
| with: | |
| enable-cache: true | |
| prune-cache: false | |
| python-version: '3.14' | |
| - name: Install ert | |
| run: uv sync --group dev | |
| - name: Fetch screenshot baselines from ert-testdata | |
| run: uv run just fetch-screenshot-baselines | |
| - name: Run screenshot tests | |
| id: screenshot-tests | |
| run: uv run just screenshot-comparison-test | |
| continue-on-error: true | |
| - name: Pack updated screenshots | |
| if: steps.screenshot-tests.outcome == 'failure' | |
| run: uv run just pack-updated-screenshots | |
| - name: Prepare artifact | |
| if: always() | |
| run: | | |
| mkdir -p artifact | |
| echo '{"pr_number": ${{ github.event.number || 0 }}, "outcome": "${{ steps.screenshot-tests.outcome }}"}' > artifact/metadata.json | |
| if [ -d updated-screenshots ]; then | |
| cp -r updated-screenshots artifact/ | |
| fi | |
| - name: Upload artifact | |
| if: always() | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: screenshot-results | |
| path: artifact/ |