From e163014291275582f41fe05983a69bcf0938bb40 Mon Sep 17 00:00:00 2001 From: Bryce Date: Thu, 18 Apr 2024 00:34:48 -0700 Subject: [PATCH] ci: faster smoke tests --- .github/workflows/ci.yaml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 997e1a9b..e6e56d14 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -115,8 +115,9 @@ jobs: run: python -m pip install wheel - name: Build package run: python setup.py bdist_wheel -# - name: Rename wheel -# run: mv dist/*.whl dist/imaginAIry-0.0.1b0-py3-none-any.whl + - name: Set wheel filename + id: set-wheel-name + run: echo "WHEEL_FILENAME=$(ls dist/*.whl)" >> "$GITHUB_OUTPUT" - uses: actions/upload-artifact@v3 with: name: wheels @@ -140,9 +141,11 @@ jobs: name: wheels path: dist - name: Install built wheel + env: + WHEEL_FILENAME: ${{ steps.set-wheel-name.outputs.WHEEL_FILENAME }} run: | python -m pip install uv - uv pip install --system dist/*.whl + uv pip install --system $WHEEL_FILENAME - name: Generate an image run: | imagine fruit --steps 3 --size 512 --seed 1 @@ -173,10 +176,12 @@ jobs: path: dist - name: Install built wheel shell: bash -l {0} + env: + WHEEL_FILENAME: ${{ steps.set-wheel-name.outputs.WHEEL_FILENAME }} run: | conda activate test-env python -m pip install uv - uv pip install dist/*.whl + uv pip install $WHEEL_FILENAME - name: Generate an image shell: bash -l {0} run: |