File tree Expand file tree Collapse file tree 4 files changed +29
-51
lines changed Expand file tree Collapse file tree 4 files changed +29
-51
lines changed Original file line number Diff line number Diff line change @@ -10,18 +10,14 @@ jobs:
10
10
11
11
steps :
12
12
- uses : actions/checkout@v4
13
- - name : Set up Python
14
- uses : actions/setup-python@v5
13
+
14
+ - name : Set up uv
15
+ uses : astral-sh/setup-uv@v6
15
16
with :
16
- python-version : 3.12
17
-
17
+ enable-cache : true
18
+
18
19
- name : Install dependencies
19
- run : |
20
- python -m pip install --upgrade pip
21
-
22
- - name : Install mikeio
23
- run : |
24
- pip install .[dev]
20
+ run : uv sync --dev
25
21
26
22
- name : Build documentation
27
23
run : |
Original file line number Diff line number Diff line change @@ -15,13 +15,12 @@ jobs:
15
15
16
16
steps :
17
17
- uses : actions/checkout@v4
18
- - name : Set up Python
19
- uses : actions /setup-python@v5
18
+ - name : Set up uv
19
+ uses : astral-sh /setup-uv@v6
20
20
with :
21
- python-version : " 3.13"
22
- - name : Install mikeio
23
- run : |
24
- pip install .[test,notebooks]
21
+ enable-cache : true
22
+ - name : Install dependencies
23
+ run : uv sync --group test --no-dev
25
24
- name : Test notebooks
26
25
run : |
27
- pytest tests/notebooks/
26
+ uv run pytest tests/notebooks/
Original file line number Diff line number Diff line change 9
9
10
10
jobs :
11
11
build :
12
-
13
12
runs-on : ${{ matrix.os }}
14
13
strategy :
15
14
matrix :
16
15
os : [ubuntu-latest, windows-latest]
17
- python-version : ["3.10"]
18
16
19
17
steps :
20
18
- uses : actions/checkout@v4
21
- - name : Set up Python ${{ matrix.python-version }}
22
- uses : actions /setup-python@v5
19
+ - name : Set up uv
20
+ uses : astral-sh /setup-uv@v6
23
21
with :
24
- python-version : ${{ matrix.python-version }}
22
+ enable-cache : true
25
23
- name : Install dependencies
26
- run : |
27
- python -m pip install --upgrade pip
28
- pip install pytest
29
-
30
- - name : Install mikeio
31
- run : |
32
- pip install .[test]
24
+ run : uv sync --group test --no-dev
25
+
33
26
- name : Test with pytest
34
27
run : |
35
28
make perftest
Original file line number Diff line number Diff line change @@ -19,21 +19,15 @@ jobs:
19
19
20
20
steps :
21
21
- uses : actions/checkout@v4
22
- - name : Set up Python ${{ matrix.python-version }}
23
- uses : actions /setup-python@v5
22
+ - name : Set up uv
23
+ uses : astral-sh /setup-uv@v6
24
24
with :
25
- python-version : ${{ matrix.python-version }}
25
+ enable-cache : true
26
26
- name : Install dependencies
27
- run : |
28
- python -m pip install --upgrade pip
29
- pip install pytest
30
-
31
- - name : Install mikeio
32
- run : |
33
- pip install .[test]
27
+ run : uv sync --group test --no-dev
34
28
- name : Test with pytest
35
29
run : |
36
- pytest --ignore tests/performance/ --ignore tests/notebooks/ --disable-warnings
30
+ uv run pytest --ignore tests/performance/ --ignore tests/notebooks/ --disable-warnings
37
31
38
32
deploy :
39
33
needs : test
@@ -45,18 +39,14 @@ jobs:
45
39
46
40
steps :
47
41
- uses : actions/checkout@v4
48
- - name : Set up Python
49
- uses : actions /setup-python@v5
42
+ - name : Set up uv
43
+ uses : astral-sh /setup-uv@v6
50
44
with :
51
- python-version : ' 3.13 '
45
+ enable-cache : true
52
46
- name : Install dependencies
53
- run : |
54
- python -m pip install --upgrade pip
55
- pip install build wheel twine
56
- - name : Install mikeio
57
- run : pip install .[test]
47
+ run : uv sync --group test --no-dev
58
48
- name : Build
59
- run : python -m build
60
- - name : Publish package distributions to PyPI
61
- uses : pypa/gh-action-pypi-publish@release/v1
49
+ run : make build
50
+ # - name: Publish package distributions to PyPI
51
+ # uses: pypa/gh-action-pypi-publish@release/v1
62
52
You can’t perform that action at this time.
0 commit comments