diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 767ac91..998d9be 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -2,8 +2,8 @@ # # Global variables from project settings: -# pypi_url: The URL of the PyPI project, e.g. https://pypi.org/p/my-fancy-package -# python-version: The minimum Python version to support. +# PYPI_URL: The URL of the PyPI project, e.g. https://pypi.org/p/my-fancy-package +# PYTHON_VERSION: The minimum Python version to support. # name: Publish Python 🐍 distribution 📦 to PyPI @@ -21,10 +21,10 @@ jobs: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: fetch-depth: 0 - - name: Set up Python ${{ vars.python-version }} + - name: Set up Python ${{ vars.PYTHON_VERSION }} uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1 with: - python-version: ${{ vars.python-version }} + python-version: ${{ vars.PYTHON_VERSION }} cache: 'pip' cache-dependency-path: setup.cfg - name: Install pypa/build @@ -47,7 +47,7 @@ jobs: runs-on: ubuntu-latest environment: name: pypi - url: ${{ vars.pypi_url }} + url: ${{ vars.PYPI_URL }} permissions: id-token: write # IMPORTANT: mandatory for trusted publishing steps: diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 5d860b9..46cfbb4 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -2,8 +2,8 @@ # # Global variables from project settings: -# python-version: The minimum Python version to support. -# python-versions: The Python versions to test. Usually a list of newer versions we support. +# PYTHON_VERSION: The minimum Python version to support. +# PYTHON_VERSIONS: The Python versions to test. Usually a list of newer versions we support. # name: Python build @@ -20,10 +20,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - - name: Set up Python ${{ matrix.python-version }} + - name: Set up Python ${{ vars.PYTHON_VERSION }} uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1 with: - python-version: ${{ vars.python-version }} + python-version: ${{ vars.PYTHON_VERSION }} cache: 'pip' cache-dependency-path: setup.cfg @@ -32,7 +32,7 @@ jobs: python -m pip install -e "." - uses: astral-sh/ruff-action@e6390afda04da2e9ef69fe1e2ae0264164550c21 # v3.0.1 - name: Lint on ${{ vars.python-version }} + name: Lint on ${{ vars.PYTHON_VERSION }} with: args: "check" # renovate: datasource=github-releases depName=astral-sh/ruff @@ -43,7 +43,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ${{ vars.python-versions }} + python-version: ${{ vars.PYTHON_VERSIONS }} steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: Set up Python ${{ matrix.python-version }}