Skip to content

Commit

Permalink
try true conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
dsikka committed May 28, 2024
1 parent 3cbc3a1 commit 5b2b0a7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-wheel-and-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ concurrency:
# if not dev or release, will create a nightly build; turning off release for not
env:
RELEASE: 'false'
DEV: ${{ github.base_ref == 'main' && github.event_name == 'pull_request'}}
# DEV: ${{ github.base_ref == 'main' && github.event_name == 'pull_request'}}
DEV: 'false'
NIGHTLY: ${{ DEV == 'false' && RELEASE == 'false'}}
jobs:
set-outputs:
runs-on: ubuntu-latest
Expand All @@ -36,17 +38,15 @@ jobs:
run: |
echo "dev=$DEV" >> $GITHUB_OUTPUT
echo "release=$RELEASE" >> $GITHUB_OUTPUT
echo "nightly=$NIGHTLY" >> $GITHUB_OUTPUT
test-nightly:
needs: set-outputs
if: ${{ needs.set-outputs.outputs.dev == 'true'}}
if: ${{ needs.set-outputs.outputs.nightly == 'true'}}
uses: ./.github/workflows/test-nightly.yml

build-wheel-and-push:
needs: [set-outputs, test-nightly]
if: |
(needs.set-outputs.outputs.dev == 'false') ||
(needs.test-nightly.result == 'success' && needs.set-outputs.outputs.dev == 'true')
uses: ./.github/workflows/build-wheel.yml
with:
build-label: ubuntu-20.04
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/test-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,12 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: "⚙️ Install dependencies"
run: pip3 install .[dev,onnxruntime,torch,torchvision,transformers]
- name: Run oneshot tests
run: |
pytest tests/sparseml/transformers/obcq -m integration
- name: Run finetune tests
if: always()
run: |
pytest tests/sparseml/transformers/finetune -m integration

0 comments on commit 5b2b0a7

Please sign in to comment.