-
-
Notifications
You must be signed in to change notification settings - Fork 107
39 lines (37 loc) · 886 Bytes
/
Copy pathci-sdk-py.yml
File metadata and controls
39 lines (37 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: CI [SDK/PY]
on:
push:
branches: [main]
pull_request:
branches: [main]
paths:
- sdk/py/**
jobs:
check:
runs-on: ubuntu-latest
defaults:
run:
working-directory: sdk/py
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Poetry
run: pipx install poetry
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: poetry
cache-dependency-path: |
sdk/py/poetry.lock
sdk/py/pyproject.toml
- name: Install Dependencies
run: poetry install --with dev
- name: Check Format
run: poetry run ruff format --check
- name: Lint
run: poetry run ruff check --no-fix
- name: Build
run: poetry build
- name: Test
run: poetry run test