Skip to content

Test

Test #4

Workflow file for this run

name: Test
on:
workflow_dispatch:
jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
matrix:
os: ['macos-latest']
python: ['3.8', '3.9']
n: [1, 2]
env:
PYTEST_ADDOPTS: --cov --color=yes -rA --disable-warnings
FORCE_COLOR: 2
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Brew Install
if: startsWith(matrix.os, 'macos')
run: |
# install system deps
# brew update
brew install bash coreutils
# add GNU coreutils to the user PATH
# (see instructions in brew install output)
echo \
"$(brew --prefix)/opt/coreutils/libexec/gnubin" \
>> "${GITHUB_PATH}"
# add coreutils to the bashrc too (for jobs)
cat >> "${HOME}/.bashrc" <<__HERE__
PATH="$(brew --prefix)/opt/coreutils/libexec/gnubin:$PATH"
export PATH
__HERE__
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- 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: Test
run: pytest cylc/uiserver/tests/test_resolvers.py