Skip to content

Commit 0db68a5

Browse files
committed
github workflows
1 parent 0748fb6 commit 0db68a5

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Python package
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: ["3.11"]
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install -e .
23+
pip install pytest
24+
- name: Test with pytest
25+
run: |
26+
pytest examples/simple

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66

77
[project]
88
name = "apitests"
9-
version = "0.0.1"
9+
version = "0.0.2"
1010
authors = [
1111
{ name="Eugene Rabtsau", email="[email protected]" },
1212
]

src/apitests/points.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@
2828
{status}-{alias}: {content}
2929
...
3030
```
31+
32+
33+
TODO:
34+
* use @dataclass(frozen=True) to make points hashable and modern
35+
3136
"""
3237

3338
import copy

0 commit comments

Comments
 (0)