Skip to content

Commit 5509604

Browse files
committed
chore: add ci
1 parent e125b2d commit 5509604

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: Python unit test
5+
6+
on:
7+
push:
8+
branches:
9+
- 'main'
10+
pull_request:
11+
branches:
12+
- '**'
13+
14+
jobs:
15+
unit-tests:
16+
name: Unit Tests
17+
runs-on: ubuntu-latest
18+
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
23+
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v5
27+
28+
- name: Set up Python ${{ matrix.python-version }}
29+
uses: actions/setup-python@v6
30+
with:
31+
python-version: ${{ matrix.python-version }}
32+
33+
- name: Set up Poetry
34+
uses: Gr1N/setup-poetry@v9
35+
36+
- name: Cache dependencies
37+
uses: actions/cache@v4
38+
with:
39+
path: ~/.cache/pypoetry/virtualenvs
40+
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
41+
restore-keys: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
42+
43+
- name: Install dependencies
44+
run: poetry install --without dev --no-root --no-interaction --no-ansi
45+
46+
- name: Launch unit test
47+
run: poetry run python -m unittest -v

tests/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)