Skip to content

Commit 44a7426

Browse files
JKSenthilfacebook-github-bot
authored andcommitted
test against 2.0.1 stable pytorch version (#793)
Summary: Pull Request resolved: #793 Adding unit test for stable pytorch version (2.0.1). This will prevent future changes from breaking OSS compatibility bypass-github-export-checks Reviewed By: galrotem Differential Revision: D56442435 fbshipit-source-id: afa1f0e33f18c5330fcdb7fba7b569df06f2e1d1
1 parent fe03666 commit 44a7426

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

.github/workflows/test.yaml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
pull_request:
77

88
jobs:
9-
unit_tests:
9+
unit_tests_nightly_pytorch:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
@@ -37,3 +37,31 @@ jobs:
3737
pytest --cov=. --cov-report xml tests -vv
3838
- name: Upload Coverage to Codecov
3939
uses: codecov/codecov-action@v2
40+
unit_tests_stable_pytorch:
41+
runs-on: ubuntu-latest
42+
strategy:
43+
matrix:
44+
python-version: [3.8]
45+
steps:
46+
- name: Check out repo
47+
uses: actions/checkout@v2
48+
- name: Setup conda env
49+
uses: conda-incubator/setup-miniconda@v2
50+
with:
51+
miniconda-version: "latest"
52+
activate-environment: test
53+
python-version: ${{ matrix.python-version }}
54+
- name: Install dependencies
55+
shell: bash -l {0}
56+
run: |
57+
set -eux
58+
conda activate test
59+
pip install -r requirements.txt
60+
pip install -r dev-requirements.txt
61+
pip install --no-build-isolation -e .
62+
- name: Run unit tests with coverage
63+
shell: bash -l {0}
64+
run: |
65+
set -eux
66+
conda activate test
67+
pytest --cov=. --cov-report xml tests -vv

0 commit comments

Comments
 (0)