Skip to content

v2.0.0

v2.0.0 #26

Workflow file for this run

name: Test PyPI Publish Workflow
on: release
jobs:
build-python-package:
name: Version Verified Package Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Test the verify-version-tag action
uses: ./verify-version-tag
with:
working_directory: ./test/dummy-package
tag: "0.4.0"
- name: Test the build-python-package action
id: packaging
uses: ./build-python-package
with:
working_directory: ./test/dummy-package
- name: Upload package artifact
uses: actions/upload-artifact@v4
with:
path: ./test/dummy-package/dist
define-matrix:
runs-on: ubuntu-latest
outputs:
versions: ${{ steps.version.outputs.python }}
steps:
- name: Define python versions
id: version
with:
python_latest: false
run: |

Check failure on line 41 in .github/workflows/test-workflow.yml

View workflow run for this annotation

GitHub Actions / Test PyPI Publish Workflow

Invalid workflow file

The workflow is not valid. .github/workflows/test-workflow.yml (Line: 41, Col: 9): Unexpected value 'run' .github/workflows/test-workflow.yml (Line: 37, Col: 9): Required property is missing: uses
PYTHON_LATEST=${{ inputs.python_latest }}
if $PYTHON_LATEST; then
echo 'python=["3.12"]' >> "$GITHUB_OUTPUT"
else
echo 'python=["3.9", "3.10", "3.11", "3.12"]' >> "$GITHUB_OUTPUT"
fi
test-package:
name: Test Python Package
needs:
- build-python-package
- define-matrix
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ${{ fromJSON(needs.define-matrix.outputs.versions) }}
steps:
- uses: actions/checkout@v4
- name: Download dist content
uses: actions/download-artifact@v4
- name: Test the test-package action
uses: ./test-package
with:
working_directory: ./test/dummy-package
python_version: ${{ matrix.python-version }}
publish-package:
name: Test Publish Package
needs: test-package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download dist content
uses: actions/download-artifact@v4
- name: Test the publish-package action
uses: ./publish-package
with:
test_pypi: "true"
test_pypi_api_token: ${{ secrets.TEST_PYPI_API_TOKEN }}
pypi_api_token: ${{ secrets.PYPI_API_TOKEN }}