Skip to content

Commit 91475d5

Browse files
authored
Merge pull request #16 from UCL/chore/python-313-support
Chore/python 313 support
2 parents fb51323 + d45e46d commit 91475d5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+2443
-3659
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
uses: code-specialist/pypi-poetry-publish@v1.2
1515
with:
1616
PACKAGE_DIRECTORY: "./src/simstock/"
17-
PYTHON_VERSION: "3.9"
17+
PYTHON_VERSION: "3.13"
1818
POETRY_VERSION: "1.4.2"
1919
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2020
BRANCH: "main"

.github/workflows/test.yaml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,21 @@ on:
88
jobs:
99
test:
1010
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
python-version: ["3.11", "3.12", "3.13"]
1115
steps:
12-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
1317

14-
- uses: actions/setup-python@v4
18+
- uses: actions/setup-python@v5
1519
with:
16-
python-version: 3.9
20+
python-version: ${{ matrix.python-version }}
1721

1822
# Cache the installation of Poetry itself, e.g. the next step. This prevents the workflow
1923
# from installing Poetry every time which can be slow
2024
- name: Cache Poetry install
21-
uses: actions/cache@v3
25+
uses: actions/cache@v4
2226
with:
2327
path: ~/.local
2428
key: poetry-1.4.2
@@ -33,10 +37,10 @@ jobs:
3337
# Cache your dependencies
3438
- name: Cache deps
3539
id: cache-deps
36-
uses: actions/cache@v3
40+
uses: actions/cache@v4
3741
with:
3842
path: .venv
39-
key: pydeps-${{ hashFiles('**/poetry.lock') }}
43+
key: pydeps-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
4044

4145
# Install dependencies
4246
- run: poetry install --no-interaction --no-root
@@ -56,4 +60,5 @@ jobs:
5660
run: poetry run python -m unittest -v
5761

5862
- name: Build Docs
63+
if: matrix.python-version == '3.13'
5964
run: poetry run sphinx-build -n -b html docs/source docs/build/html

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ share/python-wheels/
3232
*.egg
3333
MANIFEST
3434
.vscode/
35+
.venv/
3536

3637
# Django stuff:
3738
*.log

.venv/bin/Activate.ps1

Lines changed: 0 additions & 247 deletions
This file was deleted.

.venv/bin/activate

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)