|
6 | 6 | black: |
7 | 7 | runs-on: ubuntu-latest |
8 | 8 | steps: |
9 | | - - uses: actions/checkout@v2 |
10 | | - - name: Install Poetry |
11 | | - uses: snok/install-poetry@v1 |
12 | | - with: |
13 | | - version: 1.8.5 |
| 9 | + - uses: actions/checkout@v4 |
| 10 | + - name: Install uv |
| 11 | + uses: astral-sh/setup-uv@v5 |
14 | 12 | - name: Set up Python |
15 | 13 | uses: actions/setup-python@v5 |
16 | 14 | with: |
17 | | - python-version-file: 'pyproject.toml' |
18 | | - cache: 'poetry' |
| 15 | + python-version-file: "pyproject.toml" |
19 | 16 | - name: Install dependencies |
20 | | - run: poetry install --no-root |
| 17 | + run: uv sync --frozen |
21 | 18 | - name: Run black check |
22 | | - run: poetry run black --check --diff . |
| 19 | + run: uv run black --check --diff . |
23 | 20 | isort: |
24 | 21 | runs-on: ubuntu-latest |
25 | 22 | steps: |
26 | | - - uses: actions/checkout@v2 |
27 | | - - name: Install Poetry |
28 | | - uses: snok/install-poetry@v1 |
29 | | - with: |
30 | | - version: 1.8.5 |
| 23 | + - uses: actions/checkout@v4 |
| 24 | + - name: Install uv |
| 25 | + uses: astral-sh/setup-uv@v5 |
31 | 26 | - name: Set up Python |
32 | 27 | uses: actions/setup-python@v5 |
33 | 28 | with: |
34 | | - python-version-file: 'pyproject.toml' |
35 | | - cache: 'poetry' |
| 29 | + python-version-file: "pyproject.toml" |
36 | 30 | - name: Install dependencies |
37 | | - run: poetry install --no-root |
| 31 | + run: uv sync --frozen |
38 | 32 | - name: Run isort check |
39 | | - run: poetry run isort --check-only --diff . |
| 33 | + run: uv run isort --check-only --diff . |
40 | 34 | flake8: |
41 | 35 | runs-on: ubuntu-latest |
42 | 36 | steps: |
43 | | - - uses: actions/checkout@v2 |
44 | | - - name: Install Poetry |
45 | | - uses: snok/install-poetry@v1 |
46 | | - with: |
47 | | - version: 1.8.5 |
| 37 | + - uses: actions/checkout@v4 |
| 38 | + - name: Install uv |
| 39 | + uses: astral-sh/setup-uv@v5 |
48 | 40 | - name: Set up Python |
49 | 41 | uses: actions/setup-python@v5 |
50 | 42 | with: |
51 | | - python-version-file: 'pyproject.toml' |
52 | | - cache: 'poetry' |
| 43 | + python-version-file: "pyproject.toml" |
53 | 44 | - name: Install dependencies |
54 | | - run: poetry install --no-root |
| 45 | + run: uv sync --frozen |
55 | 46 | - name: Run flake8 check |
56 | | - run: poetry run flake8 --count . |
| 47 | + run: uv run flake8 --count . |
57 | 48 | mypy: |
58 | 49 | runs-on: ubuntu-latest |
59 | 50 | steps: |
60 | | - - uses: actions/checkout@v2 |
61 | | - - name: Install Poetry |
62 | | - uses: snok/install-poetry@v1 |
63 | | - with: |
64 | | - version: 1.8.5 |
| 51 | + - uses: actions/checkout@v4 |
| 52 | + - name: Install uv |
| 53 | + uses: astral-sh/setup-uv@v5 |
65 | 54 | - name: Set up Python |
66 | 55 | uses: actions/setup-python@v5 |
67 | 56 | with: |
68 | | - python-version-file: 'pyproject.toml' |
69 | | - cache: 'poetry' |
| 57 | + python-version-file: "pyproject.toml" |
70 | 58 | - name: Install dependencies |
71 | | - run: poetry install --no-root |
| 59 | + run: uv sync --frozen |
72 | 60 | - name: Run mypy check |
73 | | - run: poetry run mypy . |
| 61 | + run: uv run mypy . |
0 commit comments