瀏覽代碼

Fix/use poetry for build (#478)

cachho 2 年之前
父節點
當前提交
ccf515cadd
共有 1 個文件被更改,包括 8 次插入4 次删除
  1. 8 4
      .github/workflows/cd.yml

+ 8 - 4
.github/workflows/cd.yml

@@ -19,12 +19,16 @@ jobs:
         with:
           python-version: '3.11'
 
-      - name: Install pep517
+      - name: Install Poetry
         run: |
-          python -m pip install pep517 --user
-
+          curl -sSL https://install.python-poetry.org | python3 -
+          echo "$HOME/.local/bin" >> $GITHUB_PATH
+  
+      - name: Install dependencies
+        run: poetry install
+  
       - name: Build a binary wheel and a source tarball
-        run: python -m pep517.build .
+        run: poetry build
 
       - name: Publish distribution 📦 to Test PyPI
         uses: pypa/gh-action-pypi-publish@release/v1