Skip to content
Open
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
38 changes: 38 additions & 0 deletions .github/workflows/test_pythons.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Python tests

on:
push:
branches: [ '*' ]

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "3.15-dev"]

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Upgrade pip
run: |
python -m pip install --upgrade pip

- name: Install app in editable mode
run: |
pip install -e .

- name: Check legendary version
run: |
legendary --version

- name: Check legendary status
run: |
legendary status
2 changes: 1 addition & 1 deletion legendary/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1098,7 +1098,7 @@ def download_saves(self, app_name='', manifest_name='', save_dir='', clean_dir=F
self.log.info(f'Downloading {len(chunkLinks)} chunks...')

def log_download(r, *args, **kwargs):
self.log.debug(f'Downloaded chunk {'/'.join(urlparse(r.url).path.split('/')[5:])} successfully.')
self.log.debug(f'Downloaded chunk {"/".join(urlparse(r.url).path.split("/")[5:])} successfully.')

# map chunkLinks to self.egs.unauth_future_session.get
futures = [self.egs.unauth_future_session.get(link, hooks={'response': log_download}) for link in chunkLinks]
Expand Down