-
-
Notifications
You must be signed in to change notification settings - Fork 235
41 lines (31 loc) · 895 Bytes
/
Copy pathpytest.yml
File metadata and controls
41 lines (31 loc) · 895 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
38
39
40
41
# 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 ]
paths:
- backend/**
pull_request:
branches: [ main ]
paths:
- backend/**
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: backend
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Install the project
run: uv sync --all-extras --dev
#- name: Lint with Ruff
# run: uv run ruff check
- name: Run tests
# For example, using `pytest`
run: uv run pytest --cov=./ --cov-report=term