Skip to content

Commit

Permalink
ci: faster smoke tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brycedrennan committed Apr 18, 2024
1 parent a342bdd commit e163014
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit e163014

Please sign in to comment.