Skip to content

Commit d34e449

Browse files
authored
chore: remove redundant python setup in CI (#52)
* chore: streamline Python setup in CI configuration * chore: add Python version 3.9 to .python-version file * chore: specify Python version 3 for uv installation in CI configuration * chore: update Python version specification to 3 in CI configuration
1 parent c49096d commit d34e449

3 files changed

Lines changed: 11 additions & 15 deletions

File tree

.github/workflows/docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818

1919
- name: Install uv
2020
uses: astral-sh/setup-uv@v7
21+
with:
22+
python-version: "3"
2123

2224
- name: Install dependencies
2325
working-directory: sdk

.github/workflows/python.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,10 @@ jobs:
2626
runs-on: ubuntu-latest
2727
steps:
2828
- uses: actions/checkout@v5
29-
- name: Set up Python
30-
uses: actions/setup-python@v5
31-
with:
32-
python-version: "3.x"
3329
- name: Install uv
3430
uses: astral-sh/setup-uv@v7
31+
with:
32+
python-version: "3"
3533
- name: Install dependencies
3634
run: uv sync
3735
- name: Run mypy
@@ -42,22 +40,20 @@ jobs:
4240
runs-on: ubuntu-latest
4341
strategy:
4442
matrix:
45-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.x"]
43+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3"]
4644
steps:
4745
- uses: actions/checkout@v5
48-
- name: Set up Python
49-
uses: actions/setup-python@v5
50-
with:
51-
python-version: ${{ matrix.python-version }}
5246
- name: Install uv
5347
uses: astral-sh/setup-uv@v7
48+
with:
49+
python-version: ${{ matrix.python-version }}
5450
- name: Install dependencies
5551
run: uv sync
5652
- name: Run tests with coverage
5753
run: uv run pytest tests/unit/ -v --cov=src/fishaudio --cov-report=xml --cov-report=term
5854
- name: Upload coverage to Codecov
5955
uses: codecov/codecov-action@v5
60-
if: matrix.python-version == '3.x'
56+
if: matrix.python-version == '3'
6157
with:
6258
files: ./coverage.xml
6359
fail_ci_if_error: false
@@ -69,13 +65,10 @@ jobs:
6965
steps:
7066
- uses: actions/checkout@v5
7167

72-
- name: Set up Python
73-
uses: actions/setup-python@v5
74-
with:
75-
python-version: "3.9"
76-
7768
- name: Install uv
7869
uses: astral-sh/setup-uv@v7
70+
with:
71+
python-version: "3.9"
7972

8073
- name: Install dependencies
8174
run: uv sync

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.9

0 commit comments

Comments
 (0)