-
Notifications
You must be signed in to change notification settings - Fork 32
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
Run unit tests across Python versions 3.10-3.12. #326
Changes from 11 commits
2198882
8c47455
fa0d19f
4da71ac
2236158
7c01f03
8456b0d
0ac6e53
c3746c3
ca885c1
47f68a9
703b815
1db69da
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,11 +22,17 @@ concurrency: | |
|
||
jobs: | ||
test: | ||
name: "Unit Tests and Type Checking" | ||
name: "${{ matrix.os }} :: ${{ matrix.version }} :: Unit Tests and Type Checking" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Argh GitHub. This was also being used for a required check matching I might just copy this snippet from IREE to have a "ci-summary" job with a unique name we can set as required: https://github.com/iree-org/iree/blob/7177c29f9b2d9e255b63987f5dfff174ec2afc2f/.github/workflows/ci.yml#L201-L236 |
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
version: [3.11] | ||
version: | ||
- "3.10" | ||
- "3.11" | ||
- "3.12" | ||
|
||
# Support for Python 3.13 depends on https://github.com/pytorch/pytorch/issues/130249 | ||
# - "3.13" | ||
ScottTodd marked this conversation as resolved.
Show resolved
Hide resolved
|
||
os: [ubuntu-22.04] | ||
runs-on: ${{matrix.os}} | ||
env: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marbre you may have opinions on the job naming. I'm not sure about this.
BTW, type checking does make sense to run on multiple python versions. The use of
logging.getLevelNamesMapping() # Added in 3.11
was caught by running mypy on 3.10. I originally wanted to move type checking to pre-commit since it's similar to other lint checks, but I now think it makes sense to keep it hereThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Following the naming in other repos we would have
"Unit Tests and Type Checking :: ${{ matrix.os }} :: ${{ matrix.version }}"
but to be honest I don't really care and if we start to dislike we can change it in the future. Thus I don't want to be picky here 😉There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I'd like to put important information at the start of the name so it doesn't get cut off
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me :)