Skip to content

Commit 3fbdb43

Browse files
committed
CI: Deploy: Do not update dependencies
- use `uv sync --locked` in order to not update dependencies and bump the version when deploying - downgrad python version by a minor version for deployment
1 parent c4fbdaf commit 3fbdb43

File tree

4 files changed

+14
-13
lines changed

4 files changed

+14
-13
lines changed

.github/workflows/deploy.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,15 @@ jobs:
4242
- uses: actions/checkout@v4
4343
with:
4444
fetch-depth: 0
45+
fetch-tags: true
4546
- name: Install uv
4647
uses: astral-sh/setup-uv@v5
4748
with:
4849
version: 0.6.13
4950
- name: Install Python
50-
run: uv python install 3.13.2
51+
run: uv python install
5152
- name: Install Zennit and its Dependencies
52-
run: uv sync
53+
run: uv sync --locked
5354
- name: Build the Zennit Project
5455
run: uv build
5556
- name: Publish the Zennit Project to PyPI

.github/workflows/tests.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ jobs:
2424
matrix:
2525
include:
2626
- tox-environment: py311
27-
python-version: "3.11.12"
27+
python-version: "3.11.11"
2828
- tox-environment: py312
29-
python-version: "3.12.10"
29+
python-version: "3.12.9"
3030
- tox-environment: py313
31-
python-version: "3.13.3"
31+
python-version: "3.13.2"
3232

3333
# The job contains several steps: 1) checking out the repository, 2) installing the Python project management tool uv, 3) installing the correct
3434
# Python version, 4) setting up the test environment by installing Zennit and its dependencies, and finally 5) running the unit tests
@@ -66,7 +66,7 @@ jobs:
6666
with:
6767
version: 0.6.14
6868
- name: Install Python
69-
run: uv python install 3.13.3
69+
run: uv python install 3.13.2
7070
- name: Install Zennit and its Dependencies
7171
run: uv sync --dev
7272
- name: Run PyLint Linter
@@ -90,7 +90,7 @@ jobs:
9090
with:
9191
version: 0.6.14
9292
- name: Install Python
93-
run: uv python install 3.13.3
93+
run: uv python install 3.13.2
9494
- name: Install Zennit and its Dependencies
9595
run: uv sync --dev
9696
- name: Run PyCodeStyle
@@ -114,7 +114,7 @@ jobs:
114114
with:
115115
version: 0.6.14
116116
- name: Install Python
117-
run: uv python install 3.13.3
117+
run: uv python install 3.13.2
118118
- name: Install Zennit and its Dependencies
119119
run: uv sync --dev
120120
- name: Run PyDocLint
@@ -141,7 +141,7 @@ jobs:
141141
with:
142142
version: 0.6.14
143143
- name: Install Python
144-
run: uv python install 3.13.3
144+
run: uv python install 3.13.2
145145
- name: Install TeX Live for Pybtex and Pandoc for nbsphinx
146146
run: sudo apt-get update -y && sudo apt-get install -y texlive texlive-latex-extra dvipng pandoc
147147
- name: Build Documentation

.python-versions

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
3.11.12
2-
3.12.10
3-
3.13.3
1+
3.11.11
2+
3.12.9
3+
3.13.2

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ keywords = [
2121
"Artificial Intelligence"
2222
]
2323
license = "GPL-3.0-or-later AND LGPL-3.0-or-later"
24-
requires-python = ">=3.11.12"
24+
requires-python = ">=3.11.11"
2525
dynamic = [
2626
"readme",
2727
"version"

0 commit comments

Comments
 (0)