Skip to content

Commit 41e72e8

Browse files
authored
Merge pull request #23 from MinaProtocol/dkijania/sdk-rewrite
2 parents 32fc34b + 000645f commit 41e72e8

23 files changed

Lines changed: 17486 additions & 1229 deletions

.circleci/config.yml

Lines changed: 0 additions & 134 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master, main]
6+
pull_request:
7+
branches: [master, main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.10", "3.11", "3.12", "3.13"]
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install -e ".[dev]"
27+
28+
- name: Lint
29+
run: ruff check src/ tests/
30+
31+
- name: Run tests
32+
run: pytest -v
33+
34+
build:
35+
runs-on: ubuntu-latest
36+
needs: test
37+
steps:
38+
- uses: actions/checkout@v4
39+
40+
- name: Set up Python
41+
uses: actions/setup-python@v5
42+
with:
43+
python-version: "3.12"
44+
45+
- name: Build package
46+
run: |
47+
pip install build
48+
python -m build
49+
50+
- name: Upload artifact
51+
uses: actions/upload-artifact@v4
52+
with:
53+
name: dist
54+
path: dist/

.gitignore

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
*egg-info/
2-
build/*
3-
dist/*
4-
__pycache__
1+
__pycache__/
2+
*.py[cod]
3+
*.egg-info/
4+
*.egg
5+
dist/
6+
build/
7+
.venv/
8+
.pytest_cache/
9+
.ruff_cache/
10+
*.so
11+
.coverage
12+
htmlcov/

.style.yapf

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)