diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 1236008..b9756d1 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -14,17 +14,16 @@ jobs: name: Python ${{ matrix.python-version }} sample with Postgres ${{ matrix.postgres-version }} strategy: matrix: - python-version: - [ + python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13', - # 'pypy-3.8', + '3.14-dev', 'pypy-3.9', 'pypy-3.10', - #'pypy-3.11', + # 'pypy-3.11-dev', ] postgres-version: ['13', '14', '15', '16', '17'] continue-on-error: true @@ -64,7 +63,6 @@ jobs: - name: Run tests run: | poetry run pytest -v -x tests/ - # - name: Upload pytest test results # uses: actions/upload-artifact@v2 @@ -77,8 +75,8 @@ jobs: runs-on: ubuntu-latest needs: [test] # Only run if the PR author is Dependabot or pre-commit-ci - if: github.actor == 'dependabot[bot]' - + if: github.actor == 'dependabot[bot]' + steps: - uses: actions/checkout@v4 - name: Enable auto-merge for Dependabot PRs @@ -91,14 +89,14 @@ jobs: runs-on: ubuntu-latest if: "startsWith(github.ref, 'refs/tags/')" needs: [test] - + environment: - name: pypi - url: https://pypi.org/project/django-ltree-2 - + name: pypi + url: https://pypi.org/project/django-ltree-2 + permissions: contents: write - id-token: write # IMPORTANT: this permission is mandatory for trusted publishing + id-token: write # IMPORTANT: this permission is mandatory for trusted publishing steps: - uses: actions/checkout@v4 - name: Install Poetry @@ -109,7 +107,7 @@ jobs: - name: Build the dependency run: poetry build - + - name: Upload package to release uses: svenstaro/upload-release-action@v2 with: @@ -119,7 +117,5 @@ jobs: overwrite: true file_glob: true - - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1 -