This repository was archived by the owner on Mar 5, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (56 loc) · 1.33 KB
/
testing.yaml
File metadata and controls
64 lines (56 loc) · 1.33 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
name: Testing
on:
push:
branches:
- main
paths-ignore:
- docs/**
pull_request:
branches:
- main
paths-ignore:
- docs/**
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
pytest:
strategy:
fail-fast: false
matrix:
python-version:
- '3.10'
- '3.11'
- '3.12'
- '3.13'
- '3.14'
os:
- ubuntu-latest
- macos-latest
- windows-latest
permissions:
contents: read
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@v7
- name: Setup Python
run: uv python install ${{ matrix.python-version }}
- name: Install project
run: uv sync --group tests
- name: Run tests
env:
LEAGUE_OF_COMIC_GEEKS__CLIENT_ID: IGNORED
LEAGUE_OF_COMIC_GEEKS__CLIENT_SECRET: IGNORED
LEAGUE_OF_COMIC_GEEKS__ACCESS_TOKEN: IGNORED
run: uv run pytest
collector:
if: always()
needs:
- pytest
permissions: {}
runs-on: ubuntu-latest
steps:
- name: Check for failures
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: echo job failed && exit 1