Commit c080337
authored
Add Lean Python unit tests CI workflow (#142)
* Add Lean Python unit tests CI workflow
Runs Lean's Python/Pandas unit test suites plus every other Lean unit
test class that exercises Python code against the freshly built
Python.Runtime.dll. Test classes are selected by scanning Lean's test
sources for Python interop usage and passing the resulting
FullyQualifiedName filter through a runsettings file. Regression suites
are excluded since Python regression algorithms are already covered by
the Lean Python Regression Tests workflow.
* Run Lean Python unit tests job on self-hosted runner
Follow the pattern of Lean's own unit test CI job and this repo's main
workflow: run directly in a quantconnect/lean:foundation container on a
self-hosted runner instead of manually managing a docker container on a
GitHub-hosted runner.
* Use bash for the test filter generation step
Container jobs default to sh, which does not support the here-string
used when writing the runsettings file.
* Run Lean Python regression tests job on self-hosted runner
Follow the pattern of Lean's own regression tests CI job: run directly
in a quantconnect/lean:foundation container on a self-hosted runner
instead of manually managing a docker container on a GitHub-hosted
runner.1 parent 4bf4b28 commit c080337
2 files changed
Lines changed: 101 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | 37 | | |
58 | 38 | | |
59 | | - | |
| 39 | + | |
60 | 40 | | |
61 | 41 | | |
62 | 42 | | |
63 | 43 | | |
64 | | - | |
| 44 | + | |
65 | 45 | | |
66 | 46 | | |
67 | 47 | | |
68 | 48 | | |
69 | | - | |
| 49 | + | |
70 | 50 | | |
71 | 51 | | |
72 | 52 | | |
| |||
75 | 55 | | |
76 | 56 | | |
77 | 57 | | |
78 | | - | |
| 58 | + | |
79 | 59 | | |
80 | 60 | | |
81 | 61 | | |
82 | 62 | | |
83 | | - | |
| 63 | + | |
84 | 64 | | |
85 | 65 | | |
86 | 66 | | |
| |||
| 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 | + | |
0 commit comments