From bc93c71d4a25322311d8b374485f9fe425529bff Mon Sep 17 00:00:00 2001 From: Mark Khazin Date: Wed, 10 Jul 2024 11:57:46 +0300 Subject: [PATCH 1/2] test source dist --- .github/workflows/build.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 601a983..31b9e51 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -58,3 +58,12 @@ jobs: run: poetry run maturin develop - name: Test run: poetry run pytest -Werror tests + dist-source: + runs-on: ubuntu-latest + steps: + - name: Distribute Source + uses: PyO3/maturin-action@v1 + with: + command: sdist + env: + MATURIN_PASSWORD: ${{ secrets.pypi_password }} From f4b5c2c08079d0163d4b180db5684aa0294414ac Mon Sep 17 00:00:00 2001 From: Mark Khazin Date: Wed, 10 Jul 2024 12:05:12 +0300 Subject: [PATCH 2/2] add checkout step --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 31b9e51..db9dda0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -61,6 +61,8 @@ jobs: dist-source: runs-on: ubuntu-latest steps: + - name: Checkout + uses: actions/checkout@v3 - name: Distribute Source uses: PyO3/maturin-action@v1 with: