Skip to content

Commit b5f1af0

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 b5f1af0

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

.github/workflows/pylint.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,14 @@ jobs:
1717
matrix:
1818
python-version: ["3.7", "3.8", "3.9", "3.10"]
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/smoke-test.yml

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

0 commit comments

Comments
 (0)