Bump django from 5.1 to 5.1.6 #197
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Python package | |
on: | |
push: | |
branches: [ main ] | |
tags: [ '*' ] | |
pull_request: | |
branches: [ main ] | |
env: | |
USING_POETRY_VERSION: ">=1.8" | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
pip install poetry${USING_POETRY_VERSION} | |
poetry install -v | |
- run: poetry check | |
- run: poetry run ruff check | |
publish: | |
runs-on: ubuntu-latest | |
needs: [lint] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up latest stable Python | |
uses: actions/setup-python@v5 | |
- name: Install dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
pip install poetry${USING_POETRY_VERSION} | |
poetry install --without=dev -v | |
- name: Build package | |
run: | | |
poetry version $(git describe --tags) | |
poetry build | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: dist | |
- name: Publish to PyPI | |
if: startsWith(github.ref, 'refs/tags/') | |
env: | |
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.POETRY_PYPI_TOKEN_PYPI }} | |
run: | | |
poetry config pypi-token.pypi "$POETRY_PYPI_TOKEN_PYPI" | |
poetry publish -nv |