Skip to content

Commit e3c92b7

Browse files
committed
Fix CI
1 parent b48d8d7 commit e3c92b7

File tree

1 file changed

+9
-17
lines changed

1 file changed

+9
-17
lines changed

.github/workflows/python-package.yml

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,21 @@ jobs:
1515
python-version: ["3.12", "3.13"]
1616

1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919

2020
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v3
21+
uses: actions/setup-python@v4
2222
with:
2323
python-version: ${{ matrix.python-version }}
2424

25-
- name: Install pipenv
26-
run: |
27-
python -m pip install --upgrade pip
28-
python -m pip install pipenv
25+
- name: Install uv
26+
uses: astral-sh/setup-uv@v3
2927

30-
- name: Install dependencies with pipenv
31-
run: |
32-
pipenv --python ${{ matrix.python-version }} sync --dev && pipenv clean
28+
- name: Install dependencies
29+
run: uv sync --extra dev
3330

34-
- name: Lint with flake8
35-
run: |
36-
# stop the build if there are Python syntax errors or undefined names
37-
pipenv run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
38-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
39-
pipenv run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
31+
- name: Run pre-commit (format & lint)
32+
run: uv run pre-commit run --all-files
4033

4134
- name: Test with pytest
42-
run: |
43-
pipenv run python -m pytest tests -rP
35+
run: uv run python -m pytest tests -rP

0 commit comments

Comments
 (0)