-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (54 loc) · 1.44 KB
/
code-check.yml
File metadata and controls
57 lines (54 loc) · 1.44 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
name: Tests
on:
push:
branches: [main]
paths-ignore:
- "*.md"
- "docs/**"
pull_request:
branches: [main]
paths-ignore:
- "*.md"
- "docs/**"
permissions:
actions: read
contents: read
pull-requests: read
env:
AWS_DEFAULT_REGION: "us-east-1"
AWS_ENDPOINT_URL: "http://localhost:4566"
AWS_ACCESS_KEY_ID: "test"
AWS_SECRET_ACCESS_KEY: "test" # pragma: allowlist secret
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest] # eventually add `windows-latest` and `macos-latest`
python-version: ["3.10", "3.11", "3.12"]
services:
ministack:
image: ministackorg/ministack:1.3.53
ports:
- 4566:4566
env:
AWS_DEFAULT_REGION: us-east-1
GATEWAY_PORT: 4566
MINISTACK_ACCOUNT_ID: "000000000000"
MINISTACK_REGION: us-east-1
LOG_LEVEL: INFO
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- id: setup-uv
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
with:
enable-cache: true
cache-suffix: ${{ matrix.python-version }}
version: "latest"
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: uv sync --all-extras
- name: Run tests
run: uv run pytest