forked from super-qua/kitchenowl-python
-
Notifications
You must be signed in to change notification settings - Fork 3
26 lines (23 loc) · 767 Bytes
/
pytest.yml
File metadata and controls
26 lines (23 loc) · 767 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
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Pytesting
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- name: Install dependencies
run: uv sync --locked --all-extras
- name: Lint with Ruff
run: uv run ruff check --output-format=github .
- name: Test with pytest and coverage
run: uv run pytest --cov=./ --cov-report=term