Skip to content

Commit 65055f1

Browse files
committed
ci: add github actions for tests and build
1 parent 0a5b9e4 commit 65055f1

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test-build:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
python-version: ["3.10", "3.11", "3.12"]
14+
15+
name: Python ${{ matrix.python-version }} - tests & build
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Setup Python
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
cache: "pip"
26+
27+
- name: Install Poetry
28+
run: |
29+
python -m pip install --upgrade pip
30+
pip install poetry
31+
32+
- name: Install dependencies (Poetry)
33+
run: |
34+
poetry --version
35+
poetry install --no-interaction
36+
37+
- name: Run unit tests
38+
run: |
39+
poetry run pytest -q
40+
41+
- name: Build package (wheel + sdist)
42+
run: |
43+
poetry build

0 commit comments

Comments
 (0)