This commit is contained in:
+14
-13
@@ -13,26 +13,27 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
# The runner job image has a Debian-managed Python. Keep project packages
|
# The runner job image only has Debian's Python 3.9 without ensurepip,
|
||||||
# isolated from it rather than modifying the runner's global environment.
|
# while the project requires Python 3.10 or newer. Use the Actions tool
|
||||||
- name: Set up a virtualenv
|
# cache rather than depending on the retired Debian 11 package mirrors.
|
||||||
run: |
|
- uses: actions/setup-python@v5
|
||||||
set -eu
|
with:
|
||||||
python3 --version
|
python-version: "3.12"
|
||||||
python3 -m venv .venv
|
|
||||||
.venv/bin/python -m pip install --quiet --upgrade pip
|
- name: Check Python
|
||||||
|
run: python --version
|
||||||
|
|
||||||
- name: Install
|
- name: Install
|
||||||
run: .venv/bin/python -m pip install --quiet -e ".[dev]"
|
run: python -m pip install --quiet -e ".[dev]"
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: .venv/bin/python -m ruff check .
|
run: python -m ruff check .
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: .venv/bin/python -m pytest -q
|
run: python -m pytest -q
|
||||||
|
|
||||||
- name: Check the CLI entry point
|
- name: Check the CLI entry point
|
||||||
run: |
|
run: |
|
||||||
set -eu
|
set -eu
|
||||||
.venv/bin/lean-bench --help > /dev/null
|
lean-bench --help > /dev/null
|
||||||
.venv/bin/lean-bench doctor --skip-llm --env /dev/null
|
lean-bench doctor --skip-llm --env /dev/null
|
||||||
|
|||||||
Reference in New Issue
Block a user