Skip to content

Commit 5f854b4

Browse files
committed
1 parent 906f013 commit 5f854b4

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

.github/workflows/build_and_test.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ jobs:
3131
PIP_CACHE_DIR: ${{ github.workspace }}/.cache/pip
3232

3333
steps:
34-
- uses: actions/checkout@v3
34+
- uses: actions/checkout@v5
3535

36-
- uses: actions/setup-python@v3
36+
- uses: actions/setup-python@v6
3737
with:
3838
python-version: ${{ env.PRE_COMMIT_PYTHON_VERSION }}
3939
- name: Cache pip packages
40-
uses: actions/cache@v3
40+
uses: actions/cache@v4
4141
with:
4242
path: ${{ env.PIP_CACHE_DIR }}
4343
key: ${{ runner.os }}-pip-${{ env.PRE_COMMIT_PYTHON_VERSION }}-${{ hashFiles('pyproject.toml') }}
@@ -46,7 +46,7 @@ jobs:
4646
${{ runner.os }}-pip-
4747
4848
- name: Cache pre-commit environments
49-
uses: actions/cache@v3
49+
uses: actions/cache@v4
5050
with:
5151
path: ~/.cache/pre-commit
5252
key: pre-commit-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml') }}
@@ -80,14 +80,14 @@ jobs:
8080
run:
8181
shell: pwsh
8282
steps:
83-
- uses: actions/checkout@v3
83+
- uses: actions/checkout@v5
8484

85-
- uses: actions/setup-python@v3
85+
- uses: actions/setup-python@v6
8686
with:
8787
python-version: ${{ env.PRE_COMMIT_PYTHON_VERSION }}
8888

8989
- name: Cache pip packages
90-
uses: actions/cache@v3
90+
uses: actions/cache@v4
9191
with:
9292
path: ${{ env.PIP_CACHE_DIR }}
9393
key: ${{ runner.os }}-pip-${{ env.PRE_COMMIT_PYTHON_VERSION }}-${{ hashFiles('pyproject.toml') }}
@@ -96,7 +96,7 @@ jobs:
9696
${{ runner.os }}-pip-
9797
9898
- name: Cache pre-commit environments
99-
uses: actions/cache@v3
99+
uses: actions/cache@v4
100100
with:
101101
path: ~/.cache/pre-commit
102102
key: pre-commit-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml') }}
@@ -124,10 +124,10 @@ jobs:
124124
# Main job runs only if pre-commit succeeded
125125
main-job:
126126
strategy:
127-
fail-fast: true
127+
fail-fast: false
128128
matrix:
129129
os: [ubuntu-latest, windows-latest]
130-
python: ["3.10", "3.11", "3.12", "3.13"]
130+
python: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.14t"]
131131
package_name: ["pyrit"]
132132
package_extras: ["dev", "dev_all"]
133133
runs-on: ${{ matrix.os }}
@@ -140,18 +140,18 @@ jobs:
140140
checks: write
141141
pull-requests: write
142142
steps:
143-
- uses: actions/checkout@v3
143+
- uses: actions/checkout@v5
144144

145145
# Set up Python
146-
- uses: actions/setup-python@v3
146+
- uses: actions/setup-python@v6
147147
with:
148148
python-version: ${{ matrix.python }}
149149

150150
# Cache pip packages
151151
# GitHub automatically handles cache eviction after 7 days of inactivity (or 10GB)
152152
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/caching-dependencies-to-speed-up-workflows
153153
- name: Cache pip packages
154-
uses: actions/cache@v3
154+
uses: actions/cache@v4
155155
with:
156156
path: ${{ env.PIP_CACHE_DIR }}
157157
key: ${{ runner.os }}-pip-${{ matrix.python }}-${{ matrix.package_extras }}-${{ hashFiles('pyproject.toml') }}

pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ classifiers = [
2424
"Programming Language :: Python :: 3.12",
2525
"Programming Language :: Python :: 3.13",
2626
]
27-
requires-python = ">=3.10, <3.14"
27+
requires-python = ">=3.10, <3.15"
2828
dependencies = [
2929
"aioconsole>=0.8.1",
3030
"aiofiles>=24,<25",
@@ -88,7 +88,7 @@ dev = [
8888
"types-requests>=2.31.0.20250515",
8989
]
9090
huggingface = [
91-
"torch>=2.7.0",
91+
"torch>=2.7.0; python_version < '3.14'", # https://github.com/pytorch/pytorch/issues/156856
9292
]
9393
gcg = [
9494
"accelerate>=1.7.0",
@@ -97,7 +97,7 @@ gcg = [
9797
"mlflow>=2.22.0",
9898
"ml-collections>=1.1.0",
9999
"sentencepiece>=0.2.0",
100-
"torch>=2.7.0",
100+
"torch>=2.7.0; python_version < '3.14'", # https://github.com/pytorch/pytorch/issues/156856
101101
]
102102
playwright = [
103103
"flask>=3.1.0",
@@ -110,7 +110,7 @@ gradio = [
110110
"pywebview>=5.4"
111111
]
112112
fairness_bias = [
113-
"spacy>=3.8.7",
113+
"spacy>=3.8.7; python_version < '3.14'", # https://github.com/explosion/spaCy/pull/13870
114114
]
115115
opencv = [
116116
"opencv-python>=4.11.0.86",
@@ -136,9 +136,9 @@ all = [
136136
"opencv-python>=4.11.0.86",
137137
"playwright>=1.49.0",
138138
"pywebview>=5.4",
139-
"spacy>=3.8.7",
139+
"spacy>=3.8.7; python_version < '3.14'", # https://github.com/explosion/spaCy/pull/13870
140140
"rpyc>=6.0.1",
141-
"torch>=2.7.0",
141+
"torch>=2.7.0; python_version < '3.14'", # https://github.com/pytorch/pytorch/issues/156856
142142
"types-PyYAML>=6.0.12.20250516",
143143
"types-requests>=2.31.0.20250515",
144144
]

0 commit comments

Comments
 (0)