From fa879a64042f29044e0551b99618d558d42e77e4 Mon Sep 17 00:00:00 2001 From: Heinz-Alexander Fuetterer Date: Mon, 15 Jul 2024 20:49:41 +0200 Subject: [PATCH] s --- .github/workflows/ci.yml | 52 +++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 28 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 04a2806f89..c6415dc9df 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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']