Skip to content

Commit 18a124c

Browse files
committed
update gh actions
1 parent 489e76e commit 18a124c

File tree

3 files changed

+18
-27
lines changed

3 files changed

+18
-27
lines changed

.github/workflows/pythonpublish.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,13 @@ jobs:
1616
with:
1717
fetch-depth: 0
1818
- name: Set up Python
19-
uses: actions/setup-python@v4
19+
uses: actions/setup-python@v5
2020
with:
2121
python-version: '3.x'
22+
23+
- name: Install uv
24+
uses: astral-sh/setup-uv@v5
25+
2226
- name: Install dependencies
2327
run: |
2428
python -m pip install --upgrade pip
@@ -27,16 +31,14 @@ jobs:
2731
run: |
2832
git config --global user.name "Github Action"
2933
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
3536
run: |
36-
python setup.py sdist bdist_wheel
37+
uv build
3738
# See https://docs.pypi.org/trusted-publishers/using-a-publisher/
3839
- 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+
4042
- name: Deploy mkdocs site
4143
run: |
42-
mkdocs gh-deploy --force
44+
uv run mkdocs gh-deploy --force

.github/workflows/unittests.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,11 @@ jobs:
1212
- uses: actions/checkout@v4
1313
with:
1414
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
1717
with:
1818
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+
2320
- name: Generate coverage report
2421
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

.github/workflows/unittests_codecov.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,13 @@ jobs:
2222
- uses: actions/checkout@v4
2323
with:
2424
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
2727
with:
2828
python-version: ${{ matrix.python-version }}
29-
- name: Static code checking with pyflakes
30-
run: |
31-
pip install pyflakes
32-
pyflakes mkdocs_git_authors_plugin
3329
- name: Generate coverage report
3430
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
3832
- name: Upload coverage to Codecov
3933
if: "contains(env.USING_COVERAGE, matrix.python-version)"
4034
uses: codecov/codecov-action@v1

0 commit comments

Comments
 (0)