Skip to content

Commit

Permalink
Add test on dev? (#67)
Browse files Browse the repository at this point in the history
* Add test on dev?

* Update CI.yml
  • Loading branch information
baseplate-admin authored Dec 14, 2024
1 parent 6c3d98b commit ef0d147
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -109,7 +107,7 @@ jobs:

- name: Build the dependency
run: poetry build

- name: Upload package to release
uses: svenstaro/upload-release-action@v2
with:
Expand All @@ -119,7 +117,5 @@ jobs:
overwrite: true
file_glob: true


- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit ef0d147

Please sign in to comment.