mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 09:21:13 +08:00
DO NOT MERGE: Test Python 3.14
This commit is contained in:
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
@ -9,6 +9,13 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run:
|
||||
sudo apt-get update && sudo apt-get install -y libtiff5-dev libjpeg8-dev libopenjp2-7-dev
|
||||
zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python3-tk
|
||||
libharfbuzz-dev libfribidi-dev libxcb1-dev
|
||||
libxml2-dev libxslt-dev
|
||||
libhdf5-dev
|
||||
libopenblas-dev
|
||||
- uses: actions/checkout@v4
|
||||
- uses: astral-sh/setup-uv@v6
|
||||
with:
|
||||
@ -16,7 +23,7 @@ jobs:
|
||||
cache-dependency-glob: uv.lock
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: 3.13
|
||||
python-version: 3.14
|
||||
allow-prereleases: true
|
||||
- run: uv sync --group=test
|
||||
- name: Run tests
|
||||
|
3
.github/workflows/directory_writer.yml
vendored
3
.github/workflows/directory_writer.yml
vendored
@ -11,7 +11,8 @@ jobs:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: 3.x
|
||||
python-version: 3.14
|
||||
allow-prereleases: true
|
||||
- name: Write DIRECTORY.md
|
||||
run: |
|
||||
scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md
|
||||
|
20
.github/workflows/project_euler.yml
vendored
20
.github/workflows/project_euler.yml
vendored
@ -14,21 +14,37 @@ jobs:
|
||||
project-euler:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run:
|
||||
sudo apt-get update && sudo apt-get install -y libtiff5-dev libjpeg8-dev libopenjp2-7-dev
|
||||
zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python3-tk
|
||||
libharfbuzz-dev libfribidi-dev libxcb1-dev
|
||||
libxml2-dev libxslt-dev
|
||||
libhdf5-dev
|
||||
libopenblas-dev
|
||||
- uses: actions/checkout@v4
|
||||
- uses: astral-sh/setup-uv@v6
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: 3.x
|
||||
python-version: 3.14
|
||||
allow-prereleases: true
|
||||
- run: uv sync --group=euler-validate --group=test
|
||||
- run: uv run pytest --doctest-modules --cov-report=term-missing:skip-covered --cov=project_euler/ project_euler/
|
||||
validate-solutions:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run:
|
||||
sudo apt-get update && sudo apt-get install -y libtiff5-dev libjpeg8-dev libopenjp2-7-dev
|
||||
zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python3-tk
|
||||
libharfbuzz-dev libfribidi-dev libxcb1-dev
|
||||
libxml2-dev libxslt-dev
|
||||
libhdf5-dev
|
||||
libopenblas-dev
|
||||
- uses: actions/checkout@v4
|
||||
- uses: astral-sh/setup-uv@v6
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: 3.x
|
||||
python-version: 3.14
|
||||
allow-prereleases: true
|
||||
- run: uv sync --group=euler-validate --group=test
|
||||
- run: uv run pytest scripts/validate_solutions.py
|
||||
env:
|
||||
|
9
.github/workflows/sphinx.yml
vendored
9
.github/workflows/sphinx.yml
vendored
@ -25,11 +25,18 @@ jobs:
|
||||
build_docs:
|
||||
runs-on: ubuntu-24.04-arm
|
||||
steps:
|
||||
- run:
|
||||
sudo apt-get update && sudo apt-get install -y libtiff5-dev libjpeg8-dev libopenjp2-7-dev
|
||||
zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python3-tk
|
||||
libharfbuzz-dev libfribidi-dev libxcb1-dev
|
||||
libxml2-dev libxslt-dev
|
||||
libhdf5-dev
|
||||
libopenblas-dev
|
||||
- uses: actions/checkout@v4
|
||||
- uses: astral-sh/setup-uv@v6
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: 3.13
|
||||
python-version: 3.14
|
||||
allow-prereleases: true
|
||||
- run: uv sync --group=docs
|
||||
- uses: actions/configure-pages@v5
|
||||
|
Reference in New Issue
Block a user