Skip to content

Commit 1702f3b

Browse files
Update pyversions script
1 parent c2b6061 commit 1702f3b

2 files changed

Lines changed: 12 additions & 20 deletions

File tree

.github/workflows/pyversions.yml

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,31 +17,23 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
python-version: ["3.9", "3.10", "3.11", "3.12"] #, "3.13"]
20+
python-version: ["3.10", "3.11", "3.12", "3.13"]
2121

2222
steps:
2323
- uses: actions/checkout@v4
2424

2525
- name: Set up Python ${{ matrix.python-version }}
2626
uses: actions/setup-python@v5
2727
with:
28-
python-version: ${{ matrix.python-version }}
29-
30-
- name: Display Python version
31-
run: python -c "import sys; print(sys.version)"
32-
33-
- name: Cache pip dependencies
34-
uses: actions/cache@v4
35-
with:
36-
path: ~/.cache/pip
37-
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
38-
restore-keys: |
39-
${{ runner.os }}-pip-
40-
41-
- name: Install dependencies
28+
python-version: ${{ matrix.python-version }}
29+
cache: 'pip' # enable built-in cache
30+
cache-dependency-path: backend/requirements.txt
31+
32+
- name: Resolve dependencies only
4233
run: |
4334
cd backend
44-
python -m pip install --upgrade pip wheel setuptools
45-
pip install -e . --extra-index-url https://download.pytorch.org/whl/cu128
46-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
35+
python -m pip install --upgrade pip
36+
# Resolve requirements and editable package - no wheels pulled, no files installed
37+
python -m pip install --dry-run -e . -r requirements.txt
38+
4739

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</p>
88

99
<p align="center">
10-
<img alt="GitHub Actions Workflow Status" src="https://img.shields.io/github/actions/workflow/status/StephanAkkerman/mnemorai/pyversions.yml?label=python%203.9%20%7C%203.10%20%7C%203.11%20%7C%203.12">
10+
<img alt="GitHub Actions Workflow Status" src="https://img.shields.io/github/actions/workflow/status/StephanAkkerman/mnemorai/pyversions.yml?label=python%203.10%20%7C%203.11%20%7C%203.12">
1111
<img src="https://img.shields.io/github/license/StephanAkkerman/mnemorai.svg?color=g" alt="License">
1212
<a href="https://github.com/psf/black"><img src="https://img.shields.io/badge/code%20style-black-000000.svg" alt="Code style: black"></a>
1313
<a href="https://discord.gg/z56zRXtNR5"><img src="https://dcbadge.limes.pink/api/server/z56zRXtNR5?style=flat" alt="Discord Shield"/></a>
@@ -147,7 +147,7 @@ For a containerized setup, refer to the Docker instructions: [backend/docker/REA
147147
* Install GPU-specific requirements:
148148
```bash
149149
cd backend
150-
pip install -r requirements.txt --index-url https://download.pytorch.org/whl/cu128
150+
pip install . --extra-index-url https://download.pytorch.org/whl/cu128
151151
```
152152

153153
5. **Configure AnkiConnect:**

0 commit comments

Comments
 (0)