-
Notifications
You must be signed in to change notification settings - Fork 25
41 lines (35 loc) · 1.01 KB
/
unit-tests.yaml
File metadata and controls
41 lines (35 loc) · 1.01 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
name: unit-tests
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
unit-tests:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
continue-on-error: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
version: "0.5.30"
- name: install poetry as a tool
run: uv tool install poetry
- name: install dependencies
run: uvx poetry install --with dev
- name: Unit tests
run: uvx poetry run pytest tests/ --cov --cov-report=xml --benchmark-skip -m "not ci_skip"
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
if: matrix.python-version == '3.12.1'
with:
token: ${{ secrets.CODECOV_TOKEN }}