Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Python version an input in check-manifest and linting action #71

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion check_manifest/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: 'Check manifest'
description: 'Check Python package manifest'

inputs:
python-version:
description: 'Python version'
required: false
type: string
default: '3.x' # use x-ranges to specify the latest stable version of Python (for specified major version)

runs:
using: "composite"
Expand All @@ -9,7 +15,7 @@ runs:

- uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: ${{ inputs.python-version }}
- name: Install dependencies
shell: bash
run: |
Expand Down
10 changes: 8 additions & 2 deletions lint/action.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
name: 'Python linting'
description: 'Run Python linting using pre-commit'


inputs:
python-version:
description: 'Python version'
required: false
type: string
default: '3.x' # use x-ranges to specify the latest stable version of Python (for specified major version)

runs:
using: "composite"
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: ${{ inputs.python-version }}

- name: set PY
shell: bash
Expand Down