6
6
autoformat :
7
7
runs-on : ubuntu-latest
8
8
steps :
9
- - uses : actions/checkout@v2
9
+ - uses : actions/checkout@v4
10
10
- name : Run black to test code linting
11
11
uses : psf/black@stable
12
12
with :
@@ -20,54 +20,58 @@ jobs:
20
20
matrix :
21
21
python-version : ["3.10"]
22
22
steps :
23
- - uses : actions/checkout@v2
24
- - name : Set up Python ${{ matrix.python-version }}
25
- uses : actions /setup-python@v2
23
+ - uses : actions/checkout@v4
24
+ - name : Install uv
25
+ uses : astral-sh /setup-uv@v3
26
26
with :
27
- python-version : ${{ matrix.python-version }}
28
- cache : ' pip '
29
- cache-dependency-path : ' **/pyproject.toml '
30
- - name : Install dependencies
31
- run : |
32
- pip install -e ".[develop]"
27
+ enable-cache : true
28
+ cache-dependency-glob : " pyproject.toml "
29
+ - name : Set up Python ${{ matrix.python-version }}
30
+ run : uv python install ${{ matrix.python-version }}
31
+ - name : Install the project
32
+ run : uv sync --all-extras --dev
33
33
- name : Lint
34
34
run : |
35
- pytest . --pylint -m pylint --pylint-rcfile=.pylintrc
35
+ uv run pytest . --pylint -m pylint --pylint-rcfile=.pylintrc
36
36
static-type-checking :
37
37
runs-on : ubuntu-latest
38
38
strategy :
39
39
matrix :
40
40
python-version : ["3.10"]
41
41
steps :
42
- - uses : actions/checkout@v2
43
- - name : Set up Python ${{ matrix.python-version }}
44
- uses : actions /setup-python@v2
42
+ - uses : actions/checkout@v4
43
+ - name : Install uv
44
+ uses : astral-sh /setup-uv@v3
45
45
with :
46
- python-version : ${{ matrix.python-version }}
47
- cache : ' pip '
48
- cache-dependency-path : ' **/pyproject.toml '
49
- - name : Install dependencies
50
- run : |
51
- pip install -e ".[develop]"
46
+ enable-cache : true
47
+ cache-dependency-glob : " pyproject.toml "
48
+ - name : Set up Python ${{ matrix.python-version }}
49
+ run : uv python install ${{ matrix.python-version }}
50
+ - name : Install the project
51
+ run : uv sync --all-extras --dev
52
52
- name : Mypy
53
53
run : |
54
- mypy .
54
+ uv run mypy .
55
55
unit-tests :
56
56
runs-on : ubuntu-latest
57
57
strategy :
58
58
matrix :
59
59
python-version : ["3.10"]
60
60
steps :
61
- - uses : actions/checkout@v2
62
- - name : Set up Python ${{ matrix.python-version }}
63
- uses : actions/setup-python@v2
64
- with :
65
- python-version : ${{ matrix.python-version }}
66
- cache : ' pip'
67
- cache-dependency-path : ' **/pyproject.toml'
68
- - name : Install dependencies
61
+ - name : Install LAPACK and BLAS
69
62
run : |
70
- pip install -e ".[develop]"
63
+ sudo apt-get update
64
+ sudo apt-get install -y liblapack-dev libblas-dev
65
+ - uses : actions/checkout@v4
66
+ - name : Install uv
67
+ uses : astral-sh/setup-uv@v3
68
+ with :
69
+ enable-cache : true
70
+ cache-dependency-glob : " pyproject.toml"
71
+ - name : Set up Python ${{ matrix.python-version }}
72
+ run : uv python install ${{ matrix.python-version }}
73
+ - name : Install the project
74
+ run : uv sync --all-extras --dev
71
75
- name : Pytest
72
76
run : |
73
- pytest tests/
77
+ uv run pytest tests/
0 commit comments