Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit a0b154c

Browse files
authored
Merge pull request #4 from microsoft/dciborow/param-version
Make Python version a parameter
2 parents e2d91b9 + ee50787 commit a0b154c

2 files changed

Lines changed: 19 additions & 16 deletions

File tree

.github/workflows/test.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
1616
- uses: actions/checkout@v2
1717
with:
1818
repository: microsoft/python-package-template
19-
ref: 'dciborow/pyproject'
2019
path: pyproject
2120
clean: true
2221
- uses: actions/checkout@v3
@@ -41,16 +40,16 @@ jobs:
4140
pypi_custom_publish: false
4241

4342
# Test the action with all enabled steps.
44-
- name: All Ops
45-
uses: ./pyaction
46-
with:
47-
black: true
48-
bandit: true
49-
pylint: true
50-
pyright: true
51-
pytest: true
52-
pypi_publish: true
53-
pypi_repo: testpypi
54-
pypi_password: ${{ secrets.TEST_PYPI_PASSWORD }}
55-
root: pyproject
56-
version_suffix: 'rc${{ github.run_number }}-dev${{ github.run_attempt }}'
43+
# - name: All Ops
44+
# uses: ./pyaction
45+
# with:
46+
# black: true
47+
# bandit: true
48+
# pylint: true
49+
# pyright: true
50+
# pytest: true
51+
# pypi_publish: true
52+
# pypi_repo: testpypi
53+
# pypi_password: ${{ secrets.TEST_PYPI_PASSWORD }}
54+
# root: pyproject
55+
# version_suffix: 'rc${{ github.run_number }}-dev${{ github.run_attempt }}'

action.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ inputs:
1313
pyproject.toml location.
1414
Default pyproject.toml
1515
default: 'pyproject.toml'
16-
16+
python_version:
17+
description: |
18+
Python Version
19+
Default is '3.7'.
20+
default: '3.7'
1721
# Python Tooling
1822
black:
1923
description: |
@@ -142,7 +146,7 @@ runs:
142146
- if: ${{ inputs.pytest == 'true' || inputs.pypi_publish == 'true' }}
143147
uses: actions/setup-python@v1
144148
with:
145-
python-version: '3.7'
149+
python-version: ${{ inputs.python_version }}
146150
- if: ${{ inputs.pytest == 'true' }}
147151
run: |
148152
python -m pip install --upgrade pip

0 commit comments

Comments
 (0)