Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,26 @@ jobs:
SDL_VIDEODRIVER: dummy
# Prevents keyring from probing D-Bus / SecretService on headless Ubuntu
PYTHON_KEYRING_BACKEND: keyring.backends.null.Keyring
# Redirect all path resolution to a writable temp dir (avoids writing to runner home)
SHOPBOT_DATA_DIR: ${{ runner.temp }}/shopbot

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install
run: pip install -e .[web]
# requirements.txt carries every runtime dep plus pytest and pytest-asyncio.
# pyproject's [project.dependencies] declares only platformdirs, so installing
# the package alone leaves pytest (and pydantic, nodriver, keyring, ...) absent
# and the Test step dies with "pytest: command not found".
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -e ".[web]"
- name: Test
env:
# Redirect all path resolution to a writable temp dir (avoids writing to
# runner home). MUST stay at step level: the `runner` context does not
# exist in job-level `env:`, and referencing it there makes the entire
# workflow fail to compile -- instant failure, zero jobs scheduled.
SHOPBOT_DATA_DIR: ${{ runner.temp }}/shopbot
run: pytest --tb=short
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# python_requires >= 3.11
colorama==0.4.6
cryptography==44.0.2
httpx==0.28.1
keyring==25.7.0
nodriver==0.50.3
platformdirs==4.10.0
Expand Down
Loading