diff --git a/.github/workflows/ic.yml b/.github/workflows/ic.yml index aff02e3..052e3d0 100644 --- a/.github/workflows/ic.yml +++ b/.github/workflows/ic.yml @@ -36,10 +36,11 @@ concurrency: jobs: tests: uses: ./.github/workflows/tests.yml - # pypi: - # permissions: - # contents: write # Allows this job to create releases - # with: - # dry-run: ${{ github.ref_name == 'master' }} - # needs: [ tests ] - # uses: ./.github/workflows/pypi.yml \ No newline at end of file + pypi: + permissions: + contents: read + id-token: write # Allows this job to create releases + with: + dry-run: ${{ github.ref_name == 'master' }} + needs: [ tests ] + uses: ./.github/workflows/pypi.yml \ No newline at end of file diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 2701756..597bfe1 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -22,20 +22,14 @@ jobs: permissions: contents: write # Allows this job to create releases - runs-on: ${{ matrix.os }} - - strategy: - matrix: - python-version: ["3.11"] - os: [macos-latest] - fail-fast: false + runs-on: ubuntu-latest steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 - - name: Installer Python ${{ matrix.python-version }} + - name: Installer Python 3.11 uses: actions/setup-python@v5 with: - python-version: ${{ matrix.python-version }} + python-version: 3.11 - name: Préparation de Node.js uses: actions/setup-node@v4 diff --git a/pyproject.toml b/pyproject.toml index 1379fd1..5edb3d4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,9 +19,9 @@ requires-python = ">=3.10,<4.0" readme = "README.md" license = {text = "AGPL-3.0"} -[tool.pdm] -package-type = "library" +[tool.pdm] +distribution = true [tool.pdm.dev-dependencies] dev = [ "coverage<8.0.0,>=7.2.7",