File tree Expand file tree Collapse file tree 3 files changed +18
-27
lines changed Expand file tree Collapse file tree 3 files changed +18
-27
lines changed Original file line number Diff line number Diff line change 16
16
with :
17
17
fetch-depth : 0
18
18
- name : Set up Python
19
- uses : actions/setup-python@v4
19
+ uses : actions/setup-python@v5
20
20
with :
21
21
python-version : ' 3.x'
22
+
23
+ - name : Install uv
24
+ uses : astral-sh/setup-uv@v5
25
+
22
26
- name : Install dependencies
23
27
run : |
24
28
python -m pip install --upgrade pip
@@ -27,16 +31,14 @@ jobs:
27
31
run : |
28
32
git config --global user.name "Github Action"
29
33
git config --global user.email "[email protected] "
30
- pip install -r tests/test_requirements.txt
31
- pip install mkdocs-material
32
- pip install .
33
- pytest
34
- - name : Build package
34
+ uv run pytest
35
+ - name : Build
35
36
run : |
36
- python setup.py sdist bdist_wheel
37
+ uv build
37
38
# See https://docs.pypi.org/trusted-publishers/using-a-publisher/
38
39
- name : Publish package distributions to PyPI
39
- uses : pypa/gh-action-pypi-publish@release/v1
40
+ uses : pypa/gh-action-pypi-publish@release/v1
41
+
40
42
- name : Deploy mkdocs site
41
43
run : |
42
- mkdocs gh-deploy --force
44
+ uv run mkdocs gh-deploy --force
Original file line number Diff line number Diff line change @@ -12,16 +12,11 @@ jobs:
12
12
- uses : actions/checkout@v4
13
13
with :
14
14
fetch-depth : 0
15
- - name : Setup Python
16
- uses : actions /setup-python@v4
15
+ - name : Install uv and set the python version
16
+ uses : astral-sh /setup-uv@v5
17
17
with :
18
18
python-version : ${{ matrix.python-version }}
19
- - name : Static code checking with pyflakes
20
- run : |
21
- pip install pyflakes
22
- pyflakes mkdocs_git_authors_plugin
19
+
23
20
- name : Generate coverage report
24
21
run : |
25
- pip install -r tests/test_requirements.txt
26
- pip install -e .
27
- pytest --cov=mkdocs_git_authors_plugin --cov-report=xml
22
+ uv run pytest --cov=mkdocs_git_authors_plugin --cov-report=xml
Original file line number Diff line number Diff line change @@ -22,19 +22,13 @@ jobs:
22
22
- uses : actions/checkout@v4
23
23
with :
24
24
fetch-depth : 0
25
- - name : Setup Python ${{ matrix. python-version }}
26
- uses : actions /setup-python@v4
25
+ - name : Install uv and set the python version
26
+ uses : astral-sh /setup-uv@v5
27
27
with :
28
28
python-version : ${{ matrix.python-version }}
29
- - name : Static code checking with pyflakes
30
- run : |
31
- pip install pyflakes
32
- pyflakes mkdocs_git_authors_plugin
33
29
- name : Generate coverage report
34
30
run : |
35
- pip install -r tests/test_requirements.txt
36
- pip install -e .
37
- pytest --cov=mkdocs_git_authors_plugin --cov-report=xml
31
+ uv run pytest --cov=mkdocs_git_authors_plugin --cov-report=xml
38
32
- name : Upload coverage to Codecov
39
33
if : " contains(env.USING_COVERAGE, matrix.python-version)"
40
34
uses : codecov/codecov-action@v1
You can’t perform that action at this time.
0 commit comments