|
1 | 1 | name: Test Checks (Base/PyTorch)
|
2 | 2 | on:
|
3 | 3 | pull_request:
|
4 |
| - branches: |
5 |
| - - main |
| 4 | + branches: [ main, 'release/*' ] |
6 | 5 | push:
|
| 6 | + branches: [ main, 'release/*' ] |
7 | 7 | workflow_dispatch:
|
8 | 8 | inputs:
|
9 | 9 | code_coverage:
|
@@ -115,59 +115,9 @@ jobs:
|
115 | 115 | run: |
|
116 | 116 | coverage report --data-file="$COVERAGE_FILE" --skip-empty --format="markdown" > "$GITHUB_STEP_SUMMARY"
|
117 | 117 |
|
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 |
| -
|
168 | 118 | combine-coverage:
|
169 | 119 | runs-on: ubuntu-22.04
|
170 |
| - needs: [base-tests, pytorch-tests, compat-pytorch-1_9-pytorch-tests] |
| 120 | + needs: [base-tests, pytorch-tests] |
171 | 121 | if: (success() || failure()) && inputs.code_coverage
|
172 | 122 | steps:
|
173 | 123 | - name: "Checkout llm-compressor"
|
|
0 commit comments