diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 1833be08..51c61702 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -18,8 +18,9 @@ jobs: - name: Find Python packages id: find-packages + working-directory: src run: | - PACKAGES=$(find src -name pyproject.toml -exec dirname {} \; | jq -R -s -c 'split("\n")[:-1]') + PACKAGES=$(find . -name pyproject.toml -exec dirname {} \; | sed 's/^\.\///' | jq -R -s -c 'split("\n")[:-1]') echo "packages=$PACKAGES" >> $GITHUB_OUTPUT build: @@ -38,25 +39,25 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version-file: "${{ matrix.package }}/.python-version" + python-version-file: "src/${{ matrix.package }}/.python-version" - name: Install dependencies - working-directory: ${{ matrix.package }} + working-directory: src/${{ matrix.package }} run: uv sync --frozen --all-extras --dev - name: Run pyright - working-directory: ${{ matrix.package }} + working-directory: src/${{ matrix.package }} run: uv run --frozen pyright - name: Build package - working-directory: ${{ matrix.package }} + working-directory: src/${{ matrix.package }} run: uv build - name: Upload artifacts uses: actions/upload-artifact@v4 with: name: dist-${{ matrix.package }} - path: ${{ matrix.package }}/dist/ + path: src/${{ matrix.package }}/dist/ publish: needs: [build, detect-packages] @@ -67,7 +68,7 @@ jobs: runs-on: ubuntu-latest environment: release permissions: - id-token: write # Required for trusted publishing + id-token: write # Required for trusted publishing steps: - name: Download artifacts