diff --git a/.github/workflows/e2e-nvidia-l4-x1.yml b/.github/workflows/e2e-nvidia-l4-x1.yml index a760ec1..97096a4 100644 --- a/.github/workflows/e2e-nvidia-l4-x1.yml +++ b/.github/workflows/e2e-nvidia-l4-x1.yml @@ -116,7 +116,7 @@ jobs: run: | cat /etc/os-release mkdir -p "${TMPDIR}" - sudo dnf install -y gcc gcc-c++ make git python3.11 python3.11-devel + sudo dnf install -y gcc gcc-c++ make git python3.12 python3.12-devel - name: Checkout instructlab/instructlab uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 @@ -144,7 +144,7 @@ jobs: - name: Install ilab working-directory: ./instructlab run: | - PYTHON=python3.11 ./scripts/install-ilab-with-cuda.sh + PYTHON=python3.12 ./scripts/install-ilab-with-cuda.sh - name: Update instructlab-eval library working-directory: ./eval diff --git a/.github/workflows/e2e-nvidia-l40s-x4.yml b/.github/workflows/e2e-nvidia-l40s-x4.yml index f8fe333..bb54ab9 100644 --- a/.github/workflows/e2e-nvidia-l40s-x4.yml +++ b/.github/workflows/e2e-nvidia-l40s-x4.yml @@ -92,7 +92,7 @@ jobs: run: | cat /etc/os-release mkdir -p "${TMPDIR}" - sudo dnf install -y gcc gcc-c++ make git python3.11 python3.11-devel + sudo dnf install -y gcc gcc-c++ make git python3.12 python3.12-devel - name: Checkout instructlab/instructlab uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 @@ -173,7 +173,7 @@ jobs: - name: Install ilab working-directory: ./instructlab run: | - PYTHON=python3.11 ./scripts/install-ilab-with-cuda.sh + PYTHON=python3.12 ./scripts/install-ilab-with-cuda.sh - name: Update instructlab-eval library working-directory: ./eval diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 72e3528..93a5217 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -68,10 +68,10 @@ jobs: - name: Free disk space uses: ./.github/actions/free-disk-space - - name: Setup Python 3.11 + - name: Setup Python 3.12 uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 with: - python-version: 3.11 + python-version: 3.12 cache: pip cache-dependency-path: | **/pyproject.toml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7fed552..2ccea7a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -48,10 +48,11 @@ jobs: matrix: python: - "3.11" + - "3.12" platform: - "ubuntu-latest" include: - - python: "3.11" + - python: "3.12" platform: "macos-latest" steps: - name: Checkout diff --git a/README.md b/README.md index a39b959..bda728d 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ A teacher model is used to generate new multiple choice questions based on the k The following tools are required: - [`git`](https://git-scm.com) -- [`python`](https://www.python.org) (v3.11) +- [`python`](https://www.python.org) (v3.12) - [`pip`](https://pypi.org/project/pip/) (v23.0+) - [`bash`](https://www.gnu.org/software/bash/) (v5+, for functional tests) diff --git a/docs/ci.md b/docs/ci.md index f3a1ae5..cdf7c90 100644 --- a/docs/ci.md +++ b/docs/ci.md @@ -10,7 +10,7 @@ All unit tests currently live in the `tests/` directory and are run with [pytest To run the unit tests, you can run `tox -e unit` or `tox -e unitcov` if you want to generate coverage metrics as well. -In CI, the tests are run with Python 3.11 on Ubuntu and MacOS runners - you can see the details [here](https://github.com/instructlab/eval/blob/main/.github/workflows/test.yml) +In CI, the tests are run with on Ubuntu and MacOS runners - you can see the details [here](https://github.com/instructlab/eval/blob/main/.github/workflows/test.yml) ## Functional tests @@ -20,7 +20,7 @@ The functional test script is Shell-based and can be found at `scripts/functiona To run the functional tests, you can run `tox -e functional`. -In CI, the tests are run with Python 3.11 on Ubuntu and MacOS runners - you can see the details [here](https://github.com/instructlab/eval/blob/main/.github/workflows/test.yml) +In CI, the tests are run on Ubuntu and MacOS runners - you can see the details [here](https://github.com/instructlab/eval/blob/main/.github/workflows/test.yml) ## End-to-end (E2E) tests diff --git a/tox.ini b/tox.ini index 6513073..a2dc587 100644 --- a/tox.ini +++ b/tox.ini @@ -2,7 +2,7 @@ [tox] # py3-unit runs unit tests with 'python3' -# py311-unit runs the same tests with 'python3.11' +# py312-unit runs the same tests with 'python3.12' envlist = ruff, lint, mypy, py3-{unit, functional} minversion = 4.4 @@ -82,7 +82,7 @@ commands = mypy src [testenv:py3] -basepython = python3.11 +basepython = python3.12 [testenv:py3-unit] basepython = {[testenv:py3]basepython} @@ -96,6 +96,11 @@ passenv = [gh] python = 3.11 = py311-{unitcov, functional} + 3.12 = py312-{unitcov, functional} + 3.13 = py313-{unitcov, functional} + 3.14 = py314-{unitcov, functional} + 3.15 = py315-{unitcov, functional} + 3.16 = py316-{unitcov, functional} [testenv:constraints] description = Generate new constraints file(s)