Commit 1b90235
Add analyze-project composite action to validate a Python project (#24)
* Add check_analyzers as a trial balloon
* Fix project-directory inputs, change name of .yml file. Update install-drivers to install-extras
* Rename to analyze-project.yml and 'extras'
* Remove bandit checks. Will be covered by ni-python-styleguide soon
* Switch to a composite action
* Add test for analyze-project
* Create project to analyze
* Add shell specification for actions
* Attempt to fix the project directory for analyze test
* Attempt to fix the project directory for analyze test
* Produce poetry.lock before analyzing
* Add dependency on ni-python-styleguide
* Use a compatible Python version
* Use matrix Python version
* Another attempt at the correct python version
* Tenth time is the charm
* Eleventh time is the charm
* Twelfth time is the charm
* Thirteenth time is the charm
* Try try again
* Try try again
* Add docstrings to .py files
* Try try again
* Whee! Let's try Python
* Add mypy dependency
* Further restrict the Python version for mypy to work
* Show pyproject.toml after the addition of deps
* Attempt to use a template project for testing
* Add mypy section
* Add pyright dependencies
* Update poetry .lock
* Try different working directory
* Try original working directory
* Attempt to make it work on Windows
* Test more Python versions
* Make mypy and pyright optional.
* fix yml syntax
* Indent python code
* Check the outputs
* Check packages after install
* Use GITHUB_OUTPUT
* Move minimal test project under .github to hide it
* Simplify Add virtualenv to the path for pyright-action
* Various PR feedback
* Use poetry env info --path to get the venv path
* Add -C parameter to poetry env --info command
* Attempt to use {{ github.workspace }} instead of ./
* Attempt to use working-directory instead of -C <path>
* Remove stray quote
* Try quoting
* Remove some bash code to narrow down error
* Add back in path
* Try another arrangement
* Try without echoing the path
* Try some quotes, why not?
* Try without --path, why not
* Try without Python 3.9
* Echo the poetry env info
* Add back in path
* Try a different arrangement of quotes
* Change variable name
* Change variable name
* print some debug info
* don't stop on help
* don't fail fast
* ok, let's print it out without exiting first
* ok, use or
* ok, try this...
* analyze-project: Fix venv caching (#28)
* analyze-project: Fix venv caching
* analyze-project: Update prints
---------
Co-authored-by: Joel Dixon <[email protected]>
* Restore all the matrix of python versions and OSs
* Fix copy and paste error in test_actions.yml
* Minor PR feedback
* Remove 3.13t Python from some spots
* Use v0 for actions in README
---------
Co-authored-by: mshafer-NI <[email protected]>
Co-authored-by: Brad Keryan <[email protected]>1 parent 8c8e023 commit 1b90235
File tree
8 files changed
+794
-1
lines changed- .github
- test_projects/minimal
- src/test_project
- tests
- workflows
- analyze-project
8 files changed
+794
-1
lines changedWhitespace-only changes.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
215 | 236 | | |
216 | 237 | | |
217 | 238 | | |
| |||
225 | 246 | | |
226 | 247 | | |
227 | 248 | | |
228 | | - | |
| 249 | + | |
| 250 | + | |
229 | 251 | | |
230 | 252 | | |
231 | 253 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
0 commit comments