Skip to content

Commit 4caf91e

Browse files
committed
fix: add repo root to pytest path so CI collection succeeds
CI ran the bare `pytest` console script, which unlike `python -m pytest` does not put the repo root on sys.path, so conftest.py's `import auth` failed instantly (exit 4) on both Python jobs. `pythonpath = .` in pytest.ini makes collection invocation-independent. Also bumps checkout and setup-python actions to their Node 24 versions to clear the runner deprecation warning.
1 parent fc46e0e commit 4caf91e

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
python-version: ["3.11", "3.12"]
1515

1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v5
1818

1919
- name: Set up Python ${{ matrix.python-version }}
20-
uses: actions/setup-python@v5
20+
uses: actions/setup-python@v6
2121
with:
2222
python-version: ${{ matrix.python-version }}
2323
cache: pip

‎pytest.ini‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[pytest]
22
testpaths = tests
3+
pythonpath = .
34
python_files = test_*.py
45
python_classes = Test*
56
python_functions = test_*

0 commit comments

Comments
 (0)