Skip to content

Commit

Permalink
Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
MetRonnie committed Nov 22, 2023
1 parent e2a4ffa commit 16238d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 31 deletions.
37 changes: 6 additions & 31 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
name: Test

on:
pull_request:
workflow_dispatch:
push:
branches: [master]

jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
matrix:
os: ['ubuntu-latest']
os: ['macos-latest']
python: ['3.8', '3.9']
include:
- os: 'macos-latest'
python: '3.8'
n: [1, 2]
env:
PYTEST_ADDOPTS: --cov --color=yes
PYTEST_ADDOPTS: --cov --color=yes -rA --disable-warnings
FORCE_COLOR: 2

steps:
- name: Checkout
Expand All @@ -28,7 +24,7 @@ jobs:
if: startsWith(matrix.os, 'macos')
run: |
# install system deps
brew update
# brew update
brew install bash coreutils
# add GNU coreutils to the user PATH
Expand Down Expand Up @@ -57,26 +53,5 @@ jobs:
- name: install cylc-uiserver
run: pip install -e .[all]

- name: Style test
run: flake8

- name: Type checking
run: mypy

- name: Check changelog
if: startsWith(matrix.os, 'ubuntu')
run: towncrier build --draft

- name: Test
run: pytest

- name: Coverage report
run: |
coverage xml --ignore-errors
coverage report
- name: Codecov upload
uses: codecov/codecov-action@v3
with:
name: '${{ matrix.os }} py-${{ matrix.python }}'
fail_ci_if_error: false
run: pytest cylc/uiserver/tests/test_resolvers.py
1 change: 1 addition & 0 deletions cylc/uiserver/tests/test_resolvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ async def test_cat_log(workflow_run_dir):
first_response = response
is_first = False
for line in response.get('lines', []):
log.warning(f"dEbUg: {line}")
actual += line
if "DONE" in line:
info.context['sub_statuses'][2] = 'stop'
Expand Down

0 comments on commit 16238d9

Please sign in to comment.