forked from ListenNotes/podcast-api-python
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (53 loc) · 1.61 KB
/
Copy pathpython.yml
File metadata and controls
56 lines (53 loc) · 1.61 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
name: Python CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test:
name: Test (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.10', '3.14']
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
with:
version: '0.11.25'
python-version: ${{ matrix.python-version }}
enable-cache: true
- run: uv sync --locked
- run: uv run --locked pytest --cov=listennotes --cov-report=term-missing
integration:
name: Integration (public mock API)
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
with:
version: '0.11.25'
python-version: '3.14'
enable-cache: true
- run: uv sync --locked
- run: uv run --locked pytest --run-integration -m integration
quality:
name: Lint and package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
with:
version: '0.11.25'
python-version: '3.14'
enable-cache: true
- run: uv sync --locked
- run: uv run --locked black --check listennotes tests
- run: uv run --locked flake8 listennotes tests
- run: uv build --no-sources
- run: uv publish --dry-run --trusted-publishing never