Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
kayman-mk committed Jan 10, 2025
1 parent 59dc6af commit fc15c3e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand All @@ -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
Expand All @@ -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 }}
Expand Down

0 comments on commit fc15c3e

Please sign in to comment.