Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 0 additions & 60 deletions .github/workflows/build.yml

This file was deleted.

110 changes: 0 additions & 110 deletions .github/workflows/test.yml

This file was deleted.

80 changes: 80 additions & 0 deletions .github/workflows/test_review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Test Cylc Review

on:
pull_request:
workflow_dispatch:
push:
branches:
- master
- '*.*.x'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
FORCE_COLOR: 2

defaults:
run:
shell: bash -c "exec $CONDA_PREFIX/bin/bash -elo pipefail {0}"

jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest']
python-version: ['3.12']
env:
PYTEST_ADDOPTS: --cov --color=yes

steps:
- name: Checkout
uses: actions/checkout@v5

- name: Patch DNS
uses: cylc/release-actions/patch-dns@v1

- name: Install System Dependencies
uses: mamba-org/setup-micromamba@v2
with:
cache-environment: true
post-cleanup: 'all'
environment-name: cylc-uiserver
create-args: >-
python=${{ matrix.python-version }}
pip
bash
coreutils

- name: install cylc-flow
uses: cylc/release-actions/install-cylc-components@v1
with:
cylc_flow: true
cylc_flow_opts: ''

- name: install cylc-uiserver
run: pip install -e .[all]

- name: Functional Tests
run: |
CONF_PATH="$HOME/.cylc/flow/8"
mkdir -p "$CONF_PATH"
touch "$CONF_PATH/global.cylc"
ln -s "$CONF_PATH/global.cylc" "$CONF_PATH/global-tests.cylc"

cat >> "$CONF_PATH/global.cylc" <<__HERE__
[platforms]
[[_local_background_indep_tcp]]
hosts = localhost
install target = localhost
ssh command = ssh -oBatchMode=yes -oConnectTimeout=8 -oStrictHostKeyChecking=no
__HERE__

# Check that Cylc Review is ready to run
cylc review --help || exit 1

./etc/bin/run-functional-tests
5 changes: 5 additions & 0 deletions cylc/uiserver/cylc_review/static/css/bootstrap.min.css

Large diffs are not rendered by default.

120 changes: 120 additions & 0 deletions cylc/uiserver/cylc_review/static/css/cylc-review.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
pre {
white-space: pre;
}
.entry {
border-radius: 5px;
padding: 5px;
}
.even {
background: #eee;
}
.inline {
margin: 0;
}
.page-header {
padding-left: 10px;
padding-right: 10px;
}
.highlight {
background-color: yellow;
}
.line-number {
cursor: pointer;
}
.badge-label {
border-radius: 1em;
}


@media screen {
div.top_nav {
position: fixed;
bottom: 0;
background-color: lightgrey;
z-index: 10;
}
.next {
background: white
}
.previous {
background: white
}
.page_entries select {
width: 300px;
}
}


/* dropdown-submenu code from bootstrap v2.3.1 (removed in v3.x)
see boostrap v2.3.1 docs/assets/css/boostrap.css #3031->3075 */
.dropdown-submenu {
position: relative;
}

.dropdown-submenu > .dropdown-menu {
top: 0;
left: 100%;
margin-top: -6px;
margin-left: -1px;
-webkit-border-radius: 0 6px 6px 6px;
-moz-border-radius: 0 6px 6px 6px;
border-radius: 0 6px 6px 6px;
}

.dropdown-submenu:hover > .dropdown-menu {
display: block;
}

.dropup .dropdown-submenu > .dropdown-menu {
top: auto;
bottom: 0;
margin-top: 0;
margin-bottom: -2px;
-webkit-border-radius: 5px 5px 5px 0;
-moz-border-radius: 5px 5px 5px 0;
border-radius: 5px 5px 5px 0;
}

.dropdown-submenu > a:after {
display: block;
float: right;
width: 0;
height: 0;
margin-top: 5px;
margin-right: -10px;
border-color: transparent;
border-left-color: #cccccc;
border-style: solid;
border-width: 5px 0 5px 5px;
content: " ";
}

.dropdown-submenu:hover > a:after {
border-left-color: #222222; /* make the right arrow visible on hover */
}

.dropdown-submenu.pull-left {
float: none;
}

.dropdown-submenu.pull-left > .dropdown-menu {
left: -100%;
margin-left: 10px;
-webkit-border-radius: 6px 0 6px 6px;
-moz-border-radius: 6px 0 6px 6px;
border-radius: 6px 0 6px 6px;
}

@-moz-document url-prefix() {
fieldset { display: table-cell; }
}

th,
.livestamp {
white-space: nowrap;
}

.warning {
background-color: #FFBF00;
border-radius: 4px;
}
Loading
Loading