Skip to content

Commit 1b59f6c

Browse files
committed
ci: add GitHub Actions workflow for Python SDK testing, linting, and type checking.
1 parent cb19472 commit 1b59f6c

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI - fintech-sdk-python
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.9", "3.10", "3.11", "3.12"]
15+
16+
steps:
17+
- uses: actions/checkout@v4
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: Run Tests
29+
run: |
30+
python -m pytest
31+
32+
- name: Lint
33+
run: |
34+
python -m flake8 .
35+
python -m black --check .
36+
python -m isort --check-only .
37+
38+
- name: Type Check
39+
run: |
40+
python -m mypy .

0 commit comments

Comments
 (0)