[CI] Add a new environment called pytorch-min-ci #7522
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
We support torch 2.1.0 as our minimum. The latest torch version we support is 2.3.1. The least we can do is to run tests for both versions in the CI to be more robust. @Rhett-Ying could you help achieve that? This PR is simply building our container to include 2 environments for pytorch,
pytorch-ci
for the latest torch we support andpytorch-min-ci
for the oldest torch we support. Feel free to push to this branch if it is not mergeable like this, I opened this PR to kickstart the effort and help you.Motivation: prevent mistakes like #7521 from occurring again.
I think it would be best if we modified the CI related files so that we can easily run the tests for any number of torch versions. The ideal case is to test all the pytorch versions that we claim to support in the CI.
Checklist
Please feel free to remove inapplicable items for your PR.
Changes