-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (28 loc) · 862 Bytes
/
test.yml
File metadata and controls
37 lines (28 loc) · 862 Bytes
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
name: Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_call:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.10', '3.11', '3.12', '3.13' ]
name: Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
- name: Set up Python
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7.2.0
- name: Install dependencies
run: uv sync --extra dev
- name: Test with pytest
run: uv run pytest
- name: Check coverage
run: uv run pytest --cov=snakesay --cov-fail-under=65