-
Notifications
You must be signed in to change notification settings - Fork 27
48 lines (47 loc) · 1.47 KB
/
test.yaml
File metadata and controls
48 lines (47 loc) · 1.47 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
name: test
on:
push:
branches:
- main
paths:
- browsr/**
- pyproject.toml
- uv.lock
- .github/workflows/test.yaml
pull_request:
paths:
- browsr/**
- pyproject.toml
- uv.lock
- .github/workflows/test.yaml
schedule:
- cron: 0 12 1 * *
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
include:
- { name: Python 3.13, python: "3.13" }
- { name: Python 3.12, python: "3.12" }
- { name: Python 3.11, python: "3.11" }
- { name: Python 3.10, python: "3.10" }
- { name: Python 3.9, python: "3.9" }
permissions:
contents: read
id-token: write
pull-requests: write
steps:
- name: test
uses: juftin/actions/taskfile@v1
with:
checkout: true
setup-uv: true
task: test
install: true
github-token: ${{ secrets.GITHUB_TOKEN }}
annotations-pytest: ${{ matrix.python == '3.12' && true || false }}
pytest-coverage: ${{ matrix.python == '3.12' && github.event_name == 'pull_request' && true || false }}
env:
UV_PYTHON: ${{ matrix.python }}