Skip to content

Commit 99a0109

Browse files
committed
update CI
1 parent 3601564 commit 99a0109

File tree

8 files changed

+70
-28
lines changed

8 files changed

+70
-28
lines changed

.github/workflows/docs.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,16 @@ jobs:
1010

1111
steps:
1212
- uses: actions/checkout@v5
13-
- uses: actions/setup-python@v6
13+
14+
- name: Set up uv
15+
uses: astral-sh/setup-uv@v5
1416
with:
15-
python-version: 3.12
17+
enable-cache: true
18+
cache-dependency-glob: "pyproject.toml"
19+
20+
- name: Set up Python 3.12
21+
run: uv python install 3.12
22+
1623
- uses: actions/setup-node@v5
1724
with:
1825
node-version: 18

.github/workflows/lint.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,14 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v5
1414

15-
- name: Set up Python 3.9
16-
uses: actions/setup-python@v6
15+
- name: Set up uv
16+
uses: astral-sh/setup-uv@v5
1717
with:
18-
python-version: 3.9
18+
enable-cache: true
19+
cache-dependency-glob: "pyproject.toml"
20+
21+
- name: Set up Python 3.9
22+
run: uv python install 3.9
1923

2024
- name: Install Project
2125
run: make install

.github/workflows/test.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@ jobs:
2727
runs-on: ${{ matrix.os }}
2828
steps:
2929
- uses: actions/checkout@v5
30-
- name: Set up Python ${{ matrix.python-version }}
31-
uses: actions/setup-python@v6
30+
- name: Set up uv
31+
uses: astral-sh/setup-uv@v5
3232
with:
33-
python-version: ${{ matrix.python-version }}
34-
cache: "pip"
33+
enable-cache: true
34+
cache-dependency-glob: "pyproject.toml"
35+
- name: Set up Python ${{ matrix.python-version }}
36+
run: uv python install ${{ matrix.python-version }}
3537
- name: Install Project (Windows)
3638
if: runner.os == 'Windows'
3739
run: make MAKESHELL='C:/Program Files/Git/usr/bin/bash' install

.github/workflows/typecheck.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,14 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v5
1414

15-
- name: Set up Python 3.13
16-
uses: actions/setup-python@v6
15+
- name: Set up uv
16+
uses: astral-sh/setup-uv@v5
1717
with:
18-
python-version: 3.13
18+
enable-cache: true
19+
cache-dependency-glob: "pyproject.toml"
20+
21+
- name: Set up Python 3.13
22+
run: uv python install 3.13
1923

2024
- name: Install Project
2125
run: make install

src/mxmake/templates/gh-actions-docs.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,20 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- uses: actions/checkout@v3
11-
- uses: actions/setup-python@v4
12-
- uses: actions/setup-node@v3
10+
- uses: actions/checkout@v5
11+
12+
- name: Set up uv
13+
uses: astral-sh/setup-uv@v5
14+
with:
15+
enable-cache: true
16+
cache-dependency-glob: "pyproject.toml"
17+
18+
- name: Set up Python 3.12
19+
run: uv python install 3.12
20+
21+
- uses: actions/setup-node@v5
1322
with:
14-
node-version: 16
23+
node-version: 18
1524

1625
- run: npm install -g @mermaid-js/mermaid-cli
1726

@@ -22,7 +31,7 @@ jobs:
2231
run: make docs
2332

2433
- name: Deploy Docs
25-
uses: peaceiris/actions-gh-pages@v3
34+
uses: peaceiris/actions-gh-pages@v4
2635
if: {{ "${{ github.event_name == 'workflow_dispatch' }}" }}
2736
with:
2837
publish_branch: gh-pages

src/mxmake/templates/gh-actions-lint.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@v5
1111

12-
- name: Set up Python 3.9
13-
uses: actions/setup-python@v4
12+
- name: Set up uv
13+
uses: astral-sh/setup-uv@v5
1414
with:
15-
python-version: 3.9
15+
enable-cache: true
16+
cache-dependency-glob: "pyproject.toml"
17+
18+
- name: Set up Python 3.9
19+
run: uv python install 3.9
1620

1721
- name: Install Project
1822
run: make install

src/mxmake/templates/gh-actions-test.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,23 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
python:
13-
- "3.7"
14-
- "3.8"
1513
- "3.9"
1614
- "3.10"
1715
- "3.11"
1816
- "3.12"
17+
- "3.13"
1918

2019
steps:
21-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v5
21+
22+
- name: Set up uv
23+
uses: astral-sh/setup-uv@v5
24+
with:
25+
enable-cache: true
26+
cache-dependency-glob: "pyproject.toml"
27+
28+
- name: Set up Python {{ "${{ matrix.python }}" }}
29+
run: uv python install {{ "${{ matrix.python }}" }}
2230

2331
- name: Install Project
2432
run: make install

src/mxmake/templates/gh-actions-typecheck.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@v5
1111

12-
- name: Set up Python 3.9
13-
uses: actions/setup-python@v4
12+
- name: Set up uv
13+
uses: astral-sh/setup-uv@v5
1414
with:
15-
python-version: 3.9
15+
enable-cache: true
16+
cache-dependency-glob: "pyproject.toml"
17+
18+
- name: Set up Python 3.13
19+
run: uv python install 3.13
1620

1721
- name: Install Project
1822
run: make install

0 commit comments

Comments
 (0)