Skip to content
Draft
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
26 changes: 13 additions & 13 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ jobs:
PIP_CACHE_DIR: ${{ github.workspace }}/.cache/pip

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v5

- uses: actions/setup-python@v3
- uses: actions/setup-python@v6
with:
python-version: ${{ env.PRE_COMMIT_PYTHON_VERSION }}
- name: Cache pip packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ env.PIP_CACHE_DIR }}
key: ${{ runner.os }}-pip-${{ env.PRE_COMMIT_PYTHON_VERSION }}-${{ hashFiles('pyproject.toml') }}
Expand All @@ -46,7 +46,7 @@ jobs:
${{ runner.os }}-pip-

- name: Cache pre-commit environments
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml') }}
Expand Down Expand Up @@ -80,14 +80,14 @@ jobs:
run:
shell: pwsh
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v5

- uses: actions/setup-python@v3
- uses: actions/setup-python@v6
with:
python-version: ${{ env.PRE_COMMIT_PYTHON_VERSION }}

- name: Cache pip packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ env.PIP_CACHE_DIR }}
key: ${{ runner.os }}-pip-${{ env.PRE_COMMIT_PYTHON_VERSION }}-${{ hashFiles('pyproject.toml') }}
Expand All @@ -96,7 +96,7 @@ jobs:
${{ runner.os }}-pip-

- name: Cache pre-commit environments
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml') }}
Expand Down Expand Up @@ -124,10 +124,10 @@ jobs:
# Main job runs only if pre-commit succeeded
main-job:
strategy:
fail-fast: true
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python: ["3.10", "3.11", "3.12", "3.13"]
python: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.14t"]
package_name: ["pyrit"]
package_extras: ["dev", "dev_all"]
runs-on: ${{ matrix.os }}
Expand All @@ -140,18 +140,18 @@ jobs:
checks: write
pull-requests: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v5

# Set up Python
- uses: actions/setup-python@v3
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python }}

# Cache pip packages
# GitHub automatically handles cache eviction after 7 days of inactivity (or 10GB)
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/caching-dependencies-to-speed-up-workflows
- name: Cache pip packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ env.PIP_CACHE_DIR }}
key: ${{ runner.os }}-pip-${{ matrix.python }}-${{ matrix.package_extras }}-${{ hashFiles('pyproject.toml') }}
Expand Down
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ classifiers = [
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
requires-python = ">=3.10, <3.14"
requires-python = ">=3.10, <3.15"
dependencies = [
"aioconsole>=0.8.1",
"aiofiles>=24,<25",
Expand Down Expand Up @@ -89,7 +89,7 @@ dev = [
"types-requests>=2.31.0.20250515",
]
huggingface = [
"torch>=2.7.0",
"torch>=2.7.0; python_version < '3.14'", # https://github.com/pytorch/pytorch/issues/156856
]
gcg = [
"accelerate>=1.7.0",
Expand All @@ -98,7 +98,7 @@ gcg = [
"mlflow>=2.22.0",
"ml-collections>=1.1.0",
"sentencepiece>=0.2.0",
"torch>=2.7.0",
"torch>=2.7.0; python_version < '3.14'", # https://github.com/pytorch/pytorch/issues/156856
]
playwright = [
"flask>=3.1.0",
Expand All @@ -111,7 +111,7 @@ gradio = [
"pywebview>=5.4"
]
fairness_bias = [
"spacy>=3.8.7",
"spacy>=3.8.7; python_version < '3.14'", # https://github.com/explosion/spaCy/pull/13870
]
opencv = [
"opencv-python>=4.11.0.86",
Expand All @@ -138,9 +138,9 @@ all = [
"opencv-python>=4.11.0.86",
"playwright>=1.49.0",
"pywebview>=5.4",
"spacy>=3.8.7",
"spacy>=3.8.7; python_version < '3.14'", # https://github.com/explosion/spaCy/pull/13870
"rpyc>=6.0.1",
"torch>=2.7.0",
"torch>=2.7.0; python_version < '3.14'", # https://github.com/pytorch/pytorch/issues/156856
"types-PyYAML>=6.0.12.20250516",
"types-requests>=2.31.0.20250515",
]
Expand Down