From e008b1088eee7888c4f7b536a3c31ec94ae284f8 Mon Sep 17 00:00:00 2001 From: Agustin Borgna Date: Thu, 5 Sep 2024 12:01:37 +0100 Subject: [PATCH] ci: Fix incorrect wheels name on publish --- .github/workflows/python-wheels.yml | 9 +++++++++ justfile | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-wheels.yml b/.github/workflows/python-wheels.yml index 11fd5339..7456b0a7 100644 --- a/.github/workflows/python-wheels.yml +++ b/.github/workflows/python-wheels.yml @@ -20,6 +20,9 @@ on: permissions: contents: read +env: + MODULE_DIR: tket2-py + jobs: # Check if the tag matches the package name, # or if the workflow is running on a non-release event. @@ -67,6 +70,7 @@ jobs: args: --release --out dist --find-interpreter sccache: 'true' manylinux: auto + working-directory: ${{ env.MODULE_DIR }} - name: Upload wheels uses: actions/upload-artifact@v4 with: @@ -100,6 +104,7 @@ jobs: args: --release --out dist --find-interpreter sccache: 'true' manylinux: musllinux_1_2 + working-directory: ${{ env.MODULE_DIR }} - name: Upload wheels uses: actions/upload-artifact@v4 with: @@ -129,6 +134,7 @@ jobs: target: ${{ matrix.platform.target }} args: --release --out dist --find-interpreter sccache: 'true' + working-directory: ${{ env.MODULE_DIR }} - name: Upload wheels uses: actions/upload-artifact@v4 with: @@ -157,6 +163,7 @@ jobs: target: ${{ matrix.platform.target }} args: --release --out dist --find-interpreter sccache: 'true' + working-directory: ${{ env.MODULE_DIR }} - name: Upload wheels uses: actions/upload-artifact@v4 with: @@ -174,6 +181,7 @@ jobs: with: command: sdist args: --out dist + working-directory: ${{ env.MODULE_DIR }} - name: Upload sdist uses: actions/upload-artifact@v4 with: @@ -194,3 +202,4 @@ jobs: with: command: upload args: --non-interactive --skip-existing wheels-*/* + working-directory: ${{ env.MODULE_DIR }} diff --git a/justfile b/justfile index c3c9d845..0ab0d9c3 100644 --- a/justfile +++ b/justfile @@ -14,7 +14,7 @@ check: # Compile the wheels for the python package. build: - uv run maturin build --release + cd tket2-py && uv run maturin build --release # Run all the tests. test language="[rust|python]" : (_run_lang language \