Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests #85

Merged
merged 3 commits into from
Aug 23, 2024
Merged
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
25 changes: 16 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,44 @@ on:
push:
branches: [master]

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

env:
FORCE_COLOR: 2
PS4: '[command]'

jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
matrix:
python-version: ['3.7', '3.9']
python-version: ['3.7', '3']
fail-fast: false
env:
PYTEST_ADDOPTS: --color=yes
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: eslint
run: npx eslint .
run: npx eslint@8 .

- name: configure python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: install
run: |
set -x
sudo apt-get install -y graphviz
pip install git+https://github.com/cylc/cylc-flow/ # install latest cylc-flow
pip install -e .[all]
pip install git+https://github.com/cylc/cylc-flow/ -e .[all]

- name: pycodestyle
run: |
pycodestyle .
npx eslint cylc/
run: pycodestyle .

- name: unittest
run: |
Expand Down
2 changes: 1 addition & 1 deletion cylc/sphinx_ext/cylc_lang/autodocumenters.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def get_obj_from_module(namespace):

Examples:
>>> get_obj_from_module('os') # doctest: +ELLIPSIS
<module 'os' from ...>
<module 'os' ...>
>>> get_obj_from_module('os.walk') # doctest: +ELLIPSIS
<function walk at ...>
>>> get_obj_from_module('os.path.join') # doctest: +ELLIPSIS
Expand Down
Loading