Add torch==1.7.0 to CI tests (#8916)
* Add torch==1.7.0 to CI tests * Update ci-testing.yml * Update ci-testing.yml * Update ci-testing.yml * Update ci-testing.yml * Update ci-testing.yml * Update ci-testing.yml * Update ci-testing.yml * Update ci-testing.yml * Update ci-testing.yml * Attempt crash on 1.7.0 * revert crash * Update ci-testing.yml * Update ci-testing.yml * Update ci-testing.yml * Update ci-testing.yml * Update ci-testing.yml * Update ci-testing.yml * Update ci-testing.yml * Update ci-testing.yml * Update ci-testing.yml * Update ci-testing.yml * Update ci-testing.yml
This commit is contained in:
1 parent
7ab1f50633
commit
e242ede14c
1 file changed
+13
-4
@@ -60,6 +60,10 @@ jobs:
|
|||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
python-version: '3.9'
|
python-version: '3.9'
|
||||||
model: yolov5n
|
model: yolov5n
|
||||||
|
- os: ubuntu-latest
|
||||||
|
python-version: '3.8' # torch 1.7.0 requires python >=3.6, <=3.8
|
||||||
|
model: yolov5n
|
||||||
|
torch: '1.7.0' # min torch version CI https://pypi.org/project/torchvision/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
@@ -78,10 +82,12 @@ jobs:
|
|||||||
- name: Install requirements
|
- name: Install requirements
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip wheel
|
python -m pip install --upgrade pip wheel
|
||||||
pip install -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cpu
|
if [ "${{ matrix.torch }}" == "1.7.0" ]; then
|
||||||
python --version
|
pip install -r requirements.txt torch==1.7.0 torchvision==0.8.1 --extra-index-url https://download.pytorch.org/whl/cpu
|
||||||
pip --version
|
else
|
||||||
pip list
|
pip install -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cpu
|
||||||
|
fi
|
||||||
|
shell: bash # required for Windows compatibility
|
||||||
- name: Check environment
|
- name: Check environment
|
||||||
run: |
|
run: |
|
||||||
python -c "import utils; utils.notebook_init()"
|
python -c "import utils; utils.notebook_init()"
|
||||||
@@ -91,6 +97,9 @@ jobs:
|
|||||||
echo "GITHUB_ACTOR is ${{ github.actor }}"
|
echo "GITHUB_ACTOR is ${{ github.actor }}"
|
||||||
echo "GITHUB_REPOSITORY is ${{ github.repository }}"
|
echo "GITHUB_REPOSITORY is ${{ github.repository }}"
|
||||||
echo "GITHUB_REPOSITORY_OWNER is ${{ github.repository_owner }}"
|
echo "GITHUB_REPOSITORY_OWNER is ${{ github.repository_owner }}"
|
||||||
|
python --version
|
||||||
|
pip --version
|
||||||
|
pip list
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in new issue
Block a user