File tree Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 1
- # This workflow will install Python dependencies and run tests with PyTest using Python 3.8
1
+ # This workflow will install Python dependencies and run tests with PyTest using Python 3.11
2
2
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3
3
4
4
name : Run tests
@@ -18,10 +18,10 @@ jobs:
18
18
- uses : actions/checkout@v3
19
19
20
20
# Set Python version
21
- - name : Set up Python 3.8
21
+ - name : Set up Python 3.11
22
22
uses : actions/setup-python@v4
23
23
with :
24
- python-version : 3.8
24
+ python-version : 3.11
25
25
26
26
# Set up submodules and submodule dependencies
27
27
# TODO: Uncomment when there are submodules
Original file line number Diff line number Diff line change 16
16
FRAME_COUNT = 300
17
17
FRAME_TO_SAVE = 69
18
18
INPUT_PATH = pathlib .Path ("test_images" , "Encode Test Dataset 2024" )
19
- OUTPUT_PATH = pathlib .Path (f"log_ { int (time .time ())} " )
19
+ OUTPUT_PATH = pathlib .Path ("logs" , str ( int (time .time ())) )
20
20
21
21
# Keys for dictionary entries
22
22
MAX_TIME_MS = "max_time_ms"
@@ -157,7 +157,11 @@ def main() -> int:
157
157
158
158
# Save one image (this one has 2 landing pads in it) for reference
159
159
if frame_index == FRAME_TO_SAVE :
160
- image .save (OUTPUT_PATH / f"q{ quality } .jpeg" , format = "JPEG" , quality = quality )
160
+ image .save (
161
+ pathlib .Path (OUTPUT_PATH , f"q{ quality } .jpeg" ),
162
+ format = "JPEG" ,
163
+ quality = quality ,
164
+ )
161
165
162
166
# Save average test results
163
167
current_result [MIN_TIME_MS ] = min_time_ns / 1e6
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ jobs = 0
28
28
29
29
# Minimum Python version to use for version dependent checks. Will default to the
30
30
# version used to run pylint.
31
- py-version = " 3.8 "
31
+ py-version = " 3.11 "
32
32
33
33
# Discover python modules and packages in the file system subtree.
34
34
recursive = true
@@ -115,7 +115,7 @@ addopts = "--ignore=modules/common/"
115
115
116
116
[tool .black ]
117
117
line-length = 100
118
- target-version = [" py38 " ]
118
+ target-version = [" py311 " ]
119
119
# Excludes files or directories in addition to the defaults
120
120
# Submodules
121
121
extend-exclude = " modules/common/*"
You can’t perform that action at this time.
0 commit comments