Skip to content

Commit 45eb9c6

Browse files
authored
Run stubtest in CI and uv (#27)
1 parent 769c177 commit 45eb9c6

File tree

5 files changed

+16
-1290
lines changed

5 files changed

+16
-1290
lines changed

.github/workflows/tests.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -67,20 +67,20 @@ jobs:
6767
- name: Install dependencies
6868
run: uv sync --frozen
6969
- run: uv run python run.py mypy
70-
# stubtest:
71-
# name: Run stubtest on the the stubs
72-
# runs-on: ubuntu-latest
73-
# steps:
74-
# - uses: actions/checkout@v4
75-
# - name: Set up Python ${{ env.UV_PYTHON }}
76-
# uses: actions/setup-python@v5
77-
# with:
78-
# python-version: ${{ env.UV_PYTHON }}
79-
# - name: Install uv
80-
# uses: astral-sh/setup-uv@v6
81-
# - name: Install dependencies
82-
# run: uv sync --frozen
83-
# - run: uv run python run.py stubtest
70+
stubtest:
71+
name: Run stubtest on the the stubs
72+
runs-on: ubuntu-latest
73+
steps:
74+
- uses: actions/checkout@v4
75+
- name: Set up Python ${{ env.UV_PYTHON }}
76+
uses: actions/setup-python@v5
77+
with:
78+
python-version: ${{ env.UV_PYTHON }}
79+
- name: Install uv
80+
uses: astral-sh/setup-uv@v6
81+
- name: Install dependencies
82+
run: uv sync --frozen
83+
- run: uv run python run.py stubtest
8484
pyright:
8585
name: Run pyright on the tests and on the stubs
8686
runs-on: ubuntu-latest

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repos:
1010
- id: mixed-line-ending
1111
- id: check-case-conflict
1212
- repo: https://github.com/astral-sh/ruff-pre-commit
13-
rev: v0.12.0 # must match requirements.txt
13+
rev: v0.12.0 # must match uv.lock
1414
hooks:
1515
- id: ruff
1616
- id: ruff-format

README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,6 @@ To set up a development environment:
2727
2. Install the project dependencies: `uv sync --frozen`
2828
3. Run `uv run python run.py --help` for more.
2929

30-
Alternatively, if you want to use pip instead of `uv`:
31-
1. Create a virtual environment: `python -m .venv venv`
32-
2. Activate the virtual environment:
33-
- Unix: `. .venv/bin/activate`
34-
- Windows: `.venv\Scripts\activate`
35-
3. Update `pip`: `python -m pip install --upgrade pip`
36-
4. Install the dependencies: `python -m pip install -r requirements.txt`
37-
5. Run `python run.py --help` for more.
38-
3930
## License
4031

4132
This project is licensed under the MIT License.

0 commit comments

Comments
 (0)