Skip to content

Commit 491ec54

Browse files
committed
Modify workflows
1 parent 88c010e commit 491ec54

File tree

7 files changed

+519
-274
lines changed

7 files changed

+519
-274
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 203 deletions
This file was deleted.

.github/workflows/downstream.yml

Lines changed: 0 additions & 71 deletions
This file was deleted.

.github/workflows/ruff.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: Ruff
2+
on: [ push, pull_request ]
3+
jobs:
4+
ruff:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v4
8+
- uses: astral-sh/ruff-action@v3

.github/workflows/test.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: async-kernel test
2+
3+
on: [ push, pull_request ]
4+
jobs:
5+
build:
6+
runs-on: ${{ matrix.os }}
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
os: [ubuntu-latest, windows-latest, macos-latest]
11+
python-version:
12+
- "3.11"
13+
- "3.12"
14+
- "3.13"
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Install uv
19+
uses: astral-sh/setup-uv@v6
20+
with:
21+
version: "0.8.6"
22+
python-version: ${{ matrix.python-version }}
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
26+
- name: Install the project
27+
run: uv sync --locked --dev
28+
29+
- name: Run the tests
30+
timeout-minutes: 15
31+
run: uv run pytest
32+
33+
- name: Run Ruff
34+
run: ruff check --output-format=github .
35+

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ docs = [
5353
]
5454
dev = [
5555
"debugpy",
56+
"ruff",
57+
"hatch",
5658
"pre-commit",
5759
"pytest-cov",
5860
"pytest-timeout",

tests/coverage.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
os: [ubuntu-latest, windows-latest, macos-latest]
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
18+
- run: |
19+
pip install -e ".[test]"
20+
python -m coverage run -m pytest
21+
- uses: jupyterlab/maintainer-tools/.github/actions/upload-coverage@v1
22+
coverage_report:
23+
name: Combine & check coverage
24+
needs: test
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v3
28+
- uses: jupyterlab/maintainer-tools/.github/actions/report-coverage@v1
29+
with:
30+
fail_under: 97

0 commit comments

Comments
 (0)