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

actions: test with python up to 3.11 #2693

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
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
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
fail-fast: false
matrix:
os: ['ubuntu-latest']
python-version: ['3.7', '3.8', '3.9']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
include:
- os: 'macos-latest'
python-version: '3.8'
Expand Down
1 change: 0 additions & 1 deletion metomi/rose/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"""This package contains the Python code for Rose utilities.

This module contains the constants that are used globally within these.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whitespace change to force the tests to re-run.

"""

# File format syntax
Expand Down
3 changes: 2 additions & 1 deletion t/rose-metadata-check/09-custom-macro.t
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,11 @@ __META_CONFIG__
init_macro envswitch.py < $TEST_SOURCE_DIR/lib/custom_macro_corrupt.py
run_fail "$TEST_KEY" rose metadata-check -C ../config
file_cmp "$TEST_KEY.out" "$TEST_KEY.out" </dev/null
sed -i 's/ expected an indented block .*//' "${TEST_KEY}.err" # error message varies with Python version
file_cmp "$TEST_KEY.err" "$TEST_KEY.err" <<'__ERROR__'
[V] rose.metadata_check.MetadataChecker: issues: 1
namelist:macro_nl=my_macro_var1=macro=envswitch.LogicalTransformer
Could not import envswitch.LogicalTransformer: IndentationError: expected an indented block (envswitch.py, line 33)
Could not import envswitch.LogicalTransformer: IndentationError:
__ERROR__
teardown
#-------------------------------------------------------------------------------
Expand Down
Loading