Skip to content

Commit b47c186

Browse files
authored
Remove redundant compat-pytorch-1_9-pytorch-tests (#1798)
SUMMARY: Currently, we have a test titled `compat-pytorch-1_9-pytorch-tests` which runs the exact same code as the test above `pytorch-tests`. The only difference is the python version used (3.10 vs 3.11). Based on the test name it seems like it was previously used for testing `pytorch==1.9` support (which no longer applies). This pr removes the redundant test. Signed-off-by: Fynn Schmitt-Ulms <[email protected]>
1 parent 5b3ddff commit b47c186

File tree

1 file changed

+1
-51
lines changed

1 file changed

+1
-51
lines changed

.github/workflows/test-check.yaml

Lines changed: 1 addition & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -115,59 +115,9 @@ jobs:
115115
run: |
116116
coverage report --data-file="$COVERAGE_FILE" --skip-empty --format="markdown" > "$GITHUB_STEP_SUMMARY"
117117
118-
compat-pytorch-1_9-pytorch-tests:
119-
runs-on: ubuntu-22.04
120-
env:
121-
COVERAGE_FILE: ".coverage.compat-pytorch-1.9"
122-
steps:
123-
- uses: actions/setup-python@v5
124-
with:
125-
python-version: '3.10'
126-
- uses: actions/checkout@v4
127-
with:
128-
fetch-depth: 0
129-
fetch-tags: true
130-
- name: "⚙️ Install dependencies"
131-
run: pip3 install -U pip setuptools && pip3 install .[dev]
132-
- uses: actions/checkout@v4
133-
with:
134-
repository: "neuralmagic/compressed-tensors"
135-
path: "compressed-tensors"
136-
fetch-depth: 0
137-
fetch-tags: true
138-
- name: "⚙️ Install compressed-tensors dependencies"
139-
run: |
140-
pip3 uninstall -y compressed-tensors
141-
export GIT_CEILING_DIRECTORIES="$(pwd)"
142-
cd compressed-tensors
143-
BUILD_TYPE=nightly pip3 install .
144-
- name: "Clean compressed-tensors directory"
145-
run: rm -r compressed-tensors/
146-
- name: "⚙️ Prepare code coverage"
147-
if: inputs.code_coverage
148-
uses: ./.github/actions/prepare-code-coverage
149-
- name: "🔬 Running pytorch tests"
150-
run: |
151-
pytest -v tests/llmcompressor/pytorch
152-
- name: "Upload coverage report"
153-
if: (success() || failure()) && inputs.code_coverage
154-
uses: actions/upload-artifact@v4
155-
with:
156-
name: compat-pytorch-tests-coverage-results
157-
path: |
158-
.coverage*
159-
coverage-html
160-
coverage.json
161-
include-hidden-files: true
162-
retention-days: 5
163-
- name: "Report coverage"
164-
if: (success() || failure()) && inputs.code_coverage
165-
run: |
166-
coverage report --data-file="$COVERAGE_FILE" --skip-empty --format="markdown" > "$GITHUB_STEP_SUMMARY"
167-
168118
combine-coverage:
169119
runs-on: ubuntu-22.04
170-
needs: [base-tests, pytorch-tests, compat-pytorch-1_9-pytorch-tests]
120+
needs: [base-tests, pytorch-tests]
171121
if: (success() || failure()) && inputs.code_coverage
172122
steps:
173123
- name: "Checkout llm-compressor"

0 commit comments

Comments
 (0)