-
-
Notifications
You must be signed in to change notification settings - Fork 4
66 lines (50 loc) · 1.73 KB
/
ci-python.yml
File metadata and controls
66 lines (50 loc) · 1.73 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: CI / Python
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7.1.2
with:
version: '0.9.3'
enable-cache: false # we just cache the venv-dir directly in action-setup-venv
- uses: getsentry/action-setup-venv@0958463ee0e02b9e8aa8f8e031afae1f84b80881 # v3.0.0
with:
cache-dependency-path: uv.lock
install-cmd: uv sync --all-packages --all-groups --frozen --active
- name: Run black
run: black --check --diff python-objectstore-client
- name: Run isort
run: isort --check-only --diff python-objectstore-client
- name: Run flake8
run: flake8 python-objectstore-client
- name: Run mypy
run: mypy python-objectstore-client
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
name: Test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7.1.2
with:
version: '0.9.3'
enable-cache: false # we just cache the venv-dir directly in action-setup-venv
- uses: getsentry/action-setup-venv@0958463ee0e02b9e8aa8f8e031afae1f84b80881 # v3.0.0
with:
cache-dependency-path: uv.lock
install-cmd: uv sync --all-packages --all-groups --frozen --active
- name: Run tests
run: pytest python-objectstore-client