-
Notifications
You must be signed in to change notification settings - Fork 911
43 lines (35 loc) · 1.25 KB
/
Copy pathpython-package-uv.yml
File metadata and controls
43 lines (35 loc) · 1.25 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
name: Unit tests (uv)
on:
push:
branches: master
pull_request:
branches: master
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
env:
GITHUB_ACTIONS_CI: true
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
- name: Install dependencies
run: uv sync --frozen --group dev --python 3.11
- name: Show dependency versions
run: |
uv run --group dev python -c "import numpy; print('NumPy:', numpy.__version__)"
uv run --group dev python -c "import scipy; print('SciPy:', scipy.__version__)"
uv run --group dev python -c "import sklearn; print('Scikit-learn:', sklearn.__version__)"
uv run --group dev python -c "import pandas; print('Pandas:', pandas.__version__)"
- name: Run tests
run: |
uv run --group dev python -m coverage run --source=mlxtend --branch -m pytest mlxtend
uv run --group dev python -m coverage xml
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v4