diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af67a9f..6843f52 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,11 +14,11 @@ jobs: strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10"] + python-version: ["3.8", "3.9", "3.10", "3.11"] steps: - - uses: "actions/checkout@v2" - - uses: "actions/setup-python@v2" + - uses: "actions/checkout@v3" + - uses: "actions/setup-python@v4" with: python-version: "${{ matrix.python-version }}" - name: "Install dependencies" diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2f7ec9c..e48066b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,13 +7,15 @@ jobs: build-n-publish: name: Build release packages runs-on: ubuntu-latest + permissions: # for trusted publishing + id-token: write steps: - uses: actions/checkout@master - name: Setup python - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: "3.x" - name: Install pypa/build run: >- @@ -30,6 +32,4 @@ jobs: --outdir dist/ . - name: Publish release on pypi - uses: pypa/gh-action-pypi-publish@master - with: - password: ${{ secrets.PYPI_API_TOKEN }} + uses: pypa/gh-action-pypi-publish@release/v1