1313 pull_request :
1414 schedule :
1515 # Run every Monday at 8am to check latest versions of dependencies
16- - cron : ' 0 8 * * MON'
16+ - cron : " 0 8 * * MON"
1717
1818jobs :
1919 lint :
@@ -40,21 +40,22 @@ jobs:
4040 umask 0002
4141 SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) pipx run build --sdist --wheel
4242
43- - name : Test cli works from the installed wheel
44- # Can remove the repository reference after https://github.com/pypa/pipx/pull/733
45- run : pipx run --spec dist/*.whl ${GITHUB_REPOSITORY##*/} --version
46-
4743 - name : Upload Wheel and Sdist as artifacts
4844 uses : actions/upload-artifact@v2
4945 with :
5046 name : dist
5147 path : dist/*
5248
49+ - name : Install wheel in a venv and check cli works
50+ # ${GITHUB_REPOSITORY##*/} is the repo name without org
51+ # Replace this with the cli command if different to the repo name
52+ run : pipx run --spec dist/*.whl ${GITHUB_REPOSITORY##*/} --version
53+
5354 test :
5455 strategy :
5556 fail-fast : false
5657 matrix :
57- os : ["ubuntu-latest"] # can add windows-latest, macos-latest
58+ os : ["ubuntu-latest"] # can add windows-latest, macos-latest
5859 python : ["3.7", "3.8", "3.9"]
5960 pipenv : ["skip-lock"]
6061
@@ -103,7 +104,7 @@ jobs:
103104 - name : Github Release
104105 # We pin to the SHA, not the tag, for security reasons.
105106 # https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions
106- uses : softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5 # v0.1.14
107+ uses : softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5 # v0.1.14
107108 with :
108109 files : dist/*
109110 generate_release_notes : true
0 commit comments