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

CI: Add Python 3.11 to the CI #303

Merged
merged 2 commits into from
Jan 10, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10']
python-version: ['3.10', '3.11']

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-mlir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ['3.10']
python-version: ['3.10', '3.11']

env:
LLVM_SYMBOLIZER_PATH: /usr/lib/llvm-11/bin/llvm-symbolizer
Expand Down
10 changes: 7 additions & 3 deletions tests/test_attribute_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,14 @@ def test_data_with_non_class_param_missing_verifier_failure():
"""
with pytest.raises(Exception) as e:
irdl_attr_definition(IntListMissingVerifierData)
assert e.value.args[0] == (

# Python 3.10 and 3.11 have different error messages
assert e.value.args[0] in [
'In IntListMissingVerifierData definition: '
'Cannot infer "verify" method. Type parameter of Data has type GenericAlias.',
'In IntListMissingVerifierData definition: '
'Cannot infer "verify" method. Type parameter of Data has type GenericAlias.'
)
'Cannot infer "verify" method. Type parameter of Data is not a class.',
]


@irdl_attr_definition
Expand Down