File tree Expand file tree Collapse file tree 5 files changed +5
-9
lines changed
Expand file tree Collapse file tree 5 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 3131
3232 - name : Test with pytest
3333 run : uv run pytest
34- env :
35- PYTHONPATH : src/
3634
3735 - name : Minimize uv cache
3836 run : uv cache prune --ci
Original file line number Diff line number Diff line change 33 <module name =" eat-api" />
44 <option name =" INTERPRETER_OPTIONS" value =" " />
55 <option name =" PARENT_ENVS" value =" true" />
6- <envs >
7- <env name =" PYTHONPATH" value =" src/" />
8- </envs >
96 <option name =" SDK_HOME" value =" $PROJECT_DIR$/venv/bin/python" />
107 <option name =" WORKING_DIRECTORY" value =" " />
118 <option name =" IS_MODULE_SDK" value =" false" />
Original file line number Diff line number Diff line change @@ -15,6 +15,4 @@ RUN curl -LsSf https://astral.sh/uv/install.sh | sh
1515
1616COPY . .
1717
18- ENV PYTHONPATH src/
19-
2018CMD ["uv run pytest" ]
Original file line number Diff line number Diff line change @@ -148,5 +148,5 @@ This will also be run by CI if you push to the repository.
148148
149149### Run tests:
150150
151- - All the tests: ` PYTHONPATH=src/ uv run pytest`
152- - A specific test class: ` PYTHONPATH=src/ uv run pytest src/test/test_menu_parser.py::MenuParserTest`
151+ - All the tests: ` uv run pytest `
152+ - A specific test class: ` uv run pytest src/test/test_menu_parser.py::MenuParserTest `
Original file line number Diff line number Diff line change @@ -39,6 +39,9 @@ no_implicit_reexport = true
3939strict_equality = true
4040pretty = true
4141
42+ [tool .pytest ]
43+ ini_options = { pythonpath = " src" }
44+
4245[tool .ruff ]
4346line-length = 120
4447
You can’t perform that action at this time.
0 commit comments