-
Notifications
You must be signed in to change notification settings - Fork 11
46 lines (37 loc) · 1.02 KB
/
unit_tests.yml
File metadata and controls
46 lines (37 loc) · 1.02 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
# Based on https://docs.astral.sh/uv/guides/integration/github/#multiple-python-versions
name: Unit Tests
# trigger on PRs and main branches
on:
pull_request:
push:
branches:
- master
- develop
jobs:
build:
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
steps:
- uses: actions/checkout@v5
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.9.11"
python-version: ${{ matrix.python-version }}
- name: Set up Python
run: uv python install
- name: Install dependencies
run: uv sync --dev
- name: Test with pytest and coverage
run: |
uv run pytest --cov=datacrunch
- name: 'Upload coverage to Codecov'
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: false
- name: Test datacrunch_compat with pytest
working-directory: datacrunch_compat
run: |
uv run pytest