Skip to content

Commit e5fceed

Browse files
author
Thomas Desveaux
committed
ci: setup smoke test
simply run a nimp check status on all 'supported' python versions
1 parent 7f48d95 commit e5fceed

File tree

3 files changed

+49
-5
lines changed

3 files changed

+49
-5
lines changed

.github/workflows/pylint.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,16 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
python-version: ["3.7", "3.8", "3.9", "3.10"]
18+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1919
steps:
20-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
2121
- name: Set up Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v3
22+
uses: actions/setup-python@v5
2323
with:
2424
python-version: ${{ matrix.python-version }}
25+
cache: 'pip'
26+
cache-dependency-path: |
27+
pyproject.toml
2528
- name: Install dependencies
2629
run: |
2730
python -m pip install --upgrade pip

.github/workflows/ruff.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
name: Ruff
2-
on: [ push, pull_request ]
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- dev
7+
pull_request:
8+
branches:
9+
- master
10+
- dev
11+
312
jobs:
413
ruff:
514
runs-on: ubuntu-latest
615
steps:
7-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
817
- uses: chartboost/ruff-action@v1
918
with:
1019
src: "./nimp"

.github/workflows/smoke-test.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Smoke test
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- dev
7+
pull_request:
8+
branches:
9+
- master
10+
- dev
11+
12+
jobs:
13+
smoke:
14+
name: Smoke test / python ${{ matrix.python-version }}
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
21+
steps:
22+
- uses: actions/checkout@v4
23+
- uses: actions/setup-python@v5
24+
with:
25+
python-version: "${{ matrix.python-version }}"
26+
cache: 'pip'
27+
cache-dependency-path: |
28+
pyproject.toml
29+
- name: Install dependencies
30+
run: |
31+
python -m pip install .
32+
- run: nimp check status

0 commit comments

Comments
 (0)