Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.
Merged
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
27 changes: 13 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
- uses: actions/checkout@v2
with:
repository: microsoft/python-package-template
ref: 'dciborow/pyproject'
path: pyproject
clean: true
- uses: actions/checkout@v3
Expand All @@ -41,16 +40,16 @@ jobs:
pypi_custom_publish: false

# Test the action with all enabled steps.
- name: All Ops
uses: ./pyaction
with:
black: true
bandit: true
pylint: true
pyright: true
pytest: true
pypi_publish: true
pypi_repo: testpypi
pypi_password: ${{ secrets.TEST_PYPI_PASSWORD }}
root: pyproject
version_suffix: 'rc${{ github.run_number }}-dev${{ github.run_attempt }}'
# - name: All Ops
# uses: ./pyaction
# with:
# black: true
# bandit: true
# pylint: true
# pyright: true
# pytest: true
# pypi_publish: true
# pypi_repo: testpypi
# pypi_password: ${{ secrets.TEST_PYPI_PASSWORD }}
# root: pyproject
# version_suffix: 'rc${{ github.run_number }}-dev${{ github.run_attempt }}'
8 changes: 6 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ inputs:
pyproject.toml location.
Default pyproject.toml
default: 'pyproject.toml'

python_version:
description: |
Python Version
Default is '3.7'.
default: '3.7'
# Python Tooling
black:
description: |
Expand Down Expand Up @@ -142,7 +146,7 @@ runs:
- if: ${{ inputs.pytest == 'true' || inputs.pypi_publish == 'true' }}
uses: actions/setup-python@v1
with:
python-version: '3.7'
python-version: ${{ inputs.python_version }}
- if: ${{ inputs.pytest == 'true' }}
run: |
python -m pip install --upgrade pip
Expand Down