Skip to content

Commit a07c63f

Browse files
committed
🔧 CI without tox
1 parent 3ac4dd6 commit a07c63f

File tree

1 file changed

+47
-28
lines changed

1 file changed

+47
-28
lines changed

‎.github/workflows/ci.yml

Lines changed: 47 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,21 @@ concurrency:
1111
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
1212
cancel-in-progress: true
1313

14+
env:
15+
UV_FROZEN: 1
16+
1417
jobs:
1518
lint:
16-
timeout-minutes: 1
1719
runs-on: ubuntu-latest
20+
timeout-minutes: 2
1821

1922
steps:
2023
- uses: actions/checkout@v4
2124

25+
- uses: scientific-python/repo-review@v0.11.3
26+
with:
27+
plugins: sp-repo-review
28+
2229
- name: markdownlint
2330
uses: DavidAnson/markdownlint-cli2-action@v19
2431
with:
@@ -28,10 +35,21 @@ jobs:
2835
- name: typos
2936
uses: crate-ci/typos@master
3037

38+
- uses: astral-sh/setup-uv@v5
39+
with:
40+
enable-cache: true
41+
python-version: "3.13"
42+
version: latest
43+
44+
- name: ruff
45+
run: |
46+
uv run ruff check --output-format=github
47+
uv run ruff format --check
48+
3149
generate-matrix:
3250
name: Generate Test Matrix
33-
timeout-minutes: 1
3451
runs-on: ubuntu-latest
52+
timeout-minutes: 1
3553

3654
outputs:
3755
matrix: ${{ steps.set-matrix.outputs.matrix }}
@@ -41,10 +59,10 @@ jobs:
4159

4260
- name: Install uv
4361
uses: astral-sh/setup-uv@v5
44-
45-
- name: Install dependencies
46-
run: |
47-
uv sync --locked
62+
with:
63+
enable-cache: true
64+
python-version: "3.13"
65+
version: latest
4866

4967
- name: Generate Matrix
5068
id: set-matrix
@@ -55,8 +73,8 @@ jobs:
5573
5674
typetest:
5775
needs: generate-matrix
58-
timeout-minutes: 3
5976
runs-on: ubuntu-latest
77+
timeout-minutes: 3
6078

6179
strategy:
6280
fail-fast: false
@@ -65,31 +83,32 @@ jobs:
6583
steps:
6684
- uses: actions/checkout@v4
6785

68-
- name: Install uv
86+
- name: setup uv
6987
uses: astral-sh/setup-uv@v5
7088
with:
7189
enable-cache: true
7290
python-version: ${{ matrix.python }}
7391

74-
- name: setup tox
75-
run: uv tool install tox --with tox-uv
76-
77-
- name: Install dependencies
78-
run: |
79-
rm -rf .venv
80-
uv add --no-build-package=numpy "numpy<=${{ matrix.numpy }}"
81-
82-
- name: Run typetest
83-
run: uv run tox -e=typetest
84-
85-
- name: Run stubtest
86-
run: uv run tox -e=stubtest
87-
88-
- name: lint
89-
run: uv run tox -e=lint
92+
- name: basedpyright
93+
run: >
94+
uv run --with="numpy==${{ matrix.numpy }}"
95+
basedpyright
9096
9197
- name: basedmypy
92-
run: uv run tox -e=mypy
93-
94-
- name: basedpyright
95-
run: uv run tox -e=pyright
98+
run: >
99+
uv run --with="numpy==${{ matrix.numpy }}"
100+
run mypy
101+
--tb
102+
--hide-error-context
103+
--hide-error-code-links
104+
.
105+
106+
- name: stubtest
107+
run: >
108+
uv run --with="numpy==${{ matrix.numpy }}" --no-editable
109+
stubtest
110+
--tb
111+
--ignore-unused-allowlist
112+
--allowlist=.mypyignore
113+
--mypy-config-file=pyproject.toml
114+
scipy

0 commit comments

Comments
 (0)