Commit 86a0a3b 1 parent 2b7c905 commit 86a0a3b Copy full SHA for 86a0a3b
File tree 6 files changed +21
-30
lines changed
6 files changed +21
-30
lines changed Original file line number Diff line number Diff line change 1
1
name : Release
2
2
description : Create a GitHub release and upload the package to PyPI
3
3
inputs :
4
- pypi-api-token :
5
- description : ' PyPI API token'
6
- required : true
7
4
tag-name :
8
5
description : ' The name of the tag for the GitHub release'
9
6
required : true
10
- github-token :
11
- description : ' GitHub token'
12
- required : true
13
7
14
8
runs :
15
9
using : " composite"
31
25
files : dist/*
32
26
tag_name : " ${{ inputs.tag-name }}"
33
27
body_path : release-notes.md
34
- token : ${{ inputs.github-token }}
35
28
36
29
- name : Upload package to PyPI
37
30
uses : pypa/gh-action-pypi-publish@release/v1
38
- with :
39
- password : ${{ inputs.pypi-api-token }}
Original file line number Diff line number Diff line change @@ -4,19 +4,21 @@ inputs:
4
4
python-version :
5
5
description : ' Python version to use'
6
6
required : false
7
- default : ' 3.11 '
7
+ default : ' 3.12 '
8
8
runs :
9
9
using : ' composite'
10
10
steps :
11
- - uses : actions/setup-python@v4
11
+ - uses : actions/setup-python@v5
12
12
name : Setup Python
13
13
with :
14
14
python-version : ${{ inputs.python-version }}
15
- cache : ' pip' # caching pip dependencies
16
-
15
+ - name : Install the latest version of uv
16
+ uses : astral-sh/setup-uv@v4
17
+ with :
18
+ version : " latest"
17
19
- name : Git check
18
20
run : |
19
- git config --global user.email "bump-my-version @github.actions"
21
+ git config --global user.email "action @github.actions"
20
22
git config --global user.name "Testing Git"
21
23
git --version
22
24
git config --list
Original file line number Diff line number Diff line change @@ -19,18 +19,17 @@ jobs:
19
19
uses : actions/checkout@v4
20
20
with :
21
21
fetch-depth : 0
22
- token : ${{ secrets.PAT }}
23
22
24
- - name : Set up Python 3.10
25
- uses : actions/setup-python@v5
23
+ - name : Setup Python and Git
24
+ uses : ./.github/ actions/setup-python-and-git
26
25
with :
27
- python-version : " 3.10 "
26
+ python-version : ' 3.12 '
28
27
29
28
- name : Install dependencies
30
29
run : |
31
30
git pull --all
32
- python -m pip install ".[ docs]"
31
+ uv sync -p 3.12 --group docs
33
32
34
33
- name : Build and deploy documentation
35
34
run : |
36
- mkdocs gh-deploy --strict -v
35
+ uv run mkdocs gh-deploy --strict
Original file line number Diff line number Diff line change @@ -24,18 +24,17 @@ jobs:
24
24
with :
25
25
fetch-depth : 0
26
26
27
- - name : Set up Python 3.10
28
- uses : actions/setup-python@v5
27
+ - name : Setup Python and Git
28
+ uses : ./.github/ actions/setup-python-and-git
29
29
with :
30
- python-version : " 3.10 "
30
+ python-version : ' 3.12 '
31
31
32
32
- name : Install dependencies
33
- run : |
34
- python -m pip install ".[docs]"
33
+ run : uv sync -p 3.12 --group docs
35
34
36
35
- name : Build documentation
37
36
run : |
38
- mkdocs build --strict -v
37
+ uv run mkdocs build --strict
39
38
40
39
- name : Deploy preview
41
40
uses : rossjrw/pr-preview-action@v1
Original file line number Diff line number Diff line change 96
96
uses : ./.github/actions/release
97
97
with :
98
98
tag-name : ${{ env.TAG_NAME }}
99
- github-token : ${{ secrets.PAT }}
100
- pypi-api-token : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change 42
42
run : |
43
43
echo -e '[ui]\nusername = Testing Mercurial<[email protected] >' > ~/.hgrc
44
44
hg --version
45
- - name : Install test dependencies
46
- run : pip install '.[test]'
45
+ - name : Install requirements
46
+ shell : bash
47
+ run : |
48
+ uv sync -p 3.12 --group dev
47
49
- name : Test
48
50
run : pytest --cov-report=xml
49
51
- name : Upload coverage to Codecov
You can’t perform that action at this time.
0 commit comments