File tree Expand file tree Collapse file tree 3 files changed +9
-34
lines changed Expand file tree Collapse file tree 3 files changed +9
-34
lines changed Original file line number Diff line number Diff line change @@ -16,22 +16,11 @@ jobs:
16
16
runs-on : ubuntu-latest
17
17
steps :
18
18
- uses : actions/checkout@master
19
-
20
- - name : Setup Python
21
- uses : actions/setup-python@master
22
- with :
23
- python-version : " 3.12"
24
-
25
- - name : Install dependencies
26
- run : |
27
- pip3 install --upgrade pip
28
- pip3 install --upgrade setuptools
29
- pip3 install --upgrade wheel
30
- pip3 install ".[dev]"
31
-
19
+ - name : Install uv and set the python version
20
+ uses : astral-sh/setup-uv@v5
32
21
- name : Run unit tests
33
22
run : |
34
23
git config --global user.name "Github Action"
35
24
git config --global user.email "[email protected] "
36
- pytest
25
+ uv run pytest
37
26
Original file line number Diff line number Diff line change @@ -13,21 +13,14 @@ jobs:
13
13
steps :
14
14
- uses : actions/checkout@master
15
15
16
- - name : Setup Python
17
- uses : actions /setup-python@master
16
+ - name : Install uv and set the python version
17
+ uses : astral-sh /setup-uv@v5
18
18
with :
19
19
python-version : ${{ matrix.python-version }}
20
20
21
- - name : Install dependencies
22
- run : |
23
- pip3 install --upgrade pip
24
- pip3 install --upgrade setuptools
25
- pip3 install --upgrade wheel
26
- pip3 install ".[dev]"
27
-
28
21
- name : Run unit tests
29
22
run : |
30
23
git config --global user.name "Github Action"
31
24
git config --global user.email "[email protected] "
32
- pytest --cov=mkdocs_git_revision_date_localized_plugin --cov-report=xml
25
+ uv run pytest --cov=mkdocs_git_revision_date_localized_plugin --cov-report=xml
33
26
Original file line number Diff line number Diff line change @@ -21,23 +21,16 @@ jobs:
21
21
steps :
22
22
- uses : actions/checkout@master
23
23
24
- - name : Setup Python
25
- uses : actions /setup-python@master
24
+ - name : Install uv and set the python version
25
+ uses : astral-sh /setup-uv@v5
26
26
with :
27
27
python-version : ${{ matrix.python-version }}
28
28
29
- - name : Install dependencies
30
- run : |
31
- pip3 install --upgrade pip
32
- pip3 install --upgrade setuptools
33
- pip3 install --upgrade wheel
34
- pip3 install ".[dev]"
35
-
36
29
- name : Generate coverage report
37
30
run : |
38
31
git config --global user.name "Github Action"
39
32
git config --global user.email "[email protected] "
40
- pytest --cov=mkdocs_git_revision_date_localized_plugin --cov-report=xml
33
+ uv run pytest --cov=mkdocs_git_revision_date_localized_plugin --cov-report=xml
41
34
42
35
- name : Upload coverage to Codecov
43
36
if : " contains(env.USING_COVERAGE, matrix.python-version)"
You can’t perform that action at this time.
0 commit comments