Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
afuetterer committed Jul 15, 2024
1 parent 0700aa4 commit fa879a6
Showing 1 changed file with 24 additions and 28 deletions.
52 changes: 24 additions & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,38 +83,34 @@ jobs:
with:
python-version: '3.12'
cache: pip
- uses: hynek/build-and-inspect-python-package@v2

# - run: |
# python -m pip install --upgrade pip
# python -m pip install .[dev]
# - name: Build the wheel
# run: python -m build --wheel
# - name: Check metadata
# run: python -m twine check --strict dist/*
# - name: Install package from built wheel
# run: python -m pip install --force-reinstall dist/rdmo*.whl

# - name: Write info to step summary
# run: |
# echo -e "# ✓ Wheel successfully built (v${{ steps.new-version.outputs.new_version }})\n\n" >> $GITHUB_STEP_SUMMARY
# echo "\`\`\`console" >> $GITHUB_STEP_SUMMARY
# echo "$ python -m pip show rdmo" >> $GITHUB_STEP_SUMMARY
# python -m pip show rdmo >> $GITHUB_STEP_SUMMARY
# echo "\`\`\`" >> $GITHUB_STEP_SUMMARY

# - name: Upload wheel as artifact
# uses: actions/upload-artifact@v4
# with:
# name: wheel
# path: dist/rdmo*.whl
# if-no-files-found: error
# retention-days: 30
- run: pipx --version
- name: Build the wheel
run: pipx run build --wheel
- name: Check metadata
run: pipx run twine check --strict dist/*
- name: Install package from built wheel
run: |
python -m pip install --upgrade pip
python -m pip install dist/rdmo*.whl
- name: Write info to step summary
run: |
echo -e "# ✓ Wheel successfully built (v${{ steps.new-version.outputs.new_version }})\n\n" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`console" >> $GITHUB_STEP_SUMMARY
echo "$ python -m pip show rdmo" >> $GITHUB_STEP_SUMMARY
python -m pip show rdmo >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
# ----------------------------
- name: Upload wheel as artifact
uses: actions/upload-artifact@v4
with:
name: wheel
path: dist/rdmo*.whl
if-no-files-found: error
retention-days: 30

test:
runs-on: ubuntu-24.04
needs: build-wheel
strategy:
matrix:
python-version: ['3.8', '3.12']
Expand Down

0 comments on commit fa879a6

Please sign in to comment.