Test #5
Workflow file for this run
This file contains 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: 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 | |
run: pip install "cylc-flow @ git+https://github.com/cylc/[email protected]" | |
- name: install cylc-uiserver | |
run: pip install -e .[all] | |
- name: Test | |
run: pytest cylc/uiserver/tests/test_resolvers.py |