File tree Expand file tree Collapse file tree 1 file changed +59
-0
lines changed
Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Test
2+
3+ on :
4+ push :
5+ branches : [ main, develop ]
6+ pull_request :
7+ branches : [ main, develop ]
8+
9+ jobs :
10+ test :
11+ runs-on : ${{ matrix.os }}
12+ strategy :
13+ fail-fast : false
14+ matrix :
15+ os : [ubuntu-latest, windows-latest, macOS-latest]
16+ python-version : ["3.8", "3.9", "3.10", "3.11"]
17+
18+ steps :
19+ - name : Check out repository
20+ uses : actions/checkout@v4
21+
22+ - name : Set up Python ${{ matrix.python-version }}
23+ uses : actions/setup-python@v5
24+ with :
25+ python-version : ${{ matrix.python-version }}
26+
27+ - name : Install uv
28+ uses : astral-sh/setup-uv@v3
29+ with :
30+ enable-cache : true
31+
32+ - name : Install dependencies
33+ run : |
34+ uv sync --dev
35+
36+ - name : Lint with black
37+ run : |
38+ uv run black --check .
39+
40+ - name : Sort imports with isort
41+ run : |
42+ uv run isort --check-only .
43+
44+ - name : Type check with mypy
45+ run : |
46+ uv run mypy tempmail
47+
48+ - name : Test with pytest
49+ run : |
50+ uv run pytest tests/ -v --cov=tempmail --cov-report=xml --cov-report=term-missing
51+
52+ - name : Upload coverage to Codecov
53+ if : matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
54+ uses : codecov/codecov-action@v4
55+ with :
56+ file : ./coverage.xml
57+ flags : unittests
58+ name : codecov-umbrella
59+ fail_ci_if_error : false
You can’t perform that action at this time.
0 commit comments