Skip to content

Commit fe3cc78

Browse files
author
bakhee
committed
feat: update ci
1 parent 724fd1b commit fe3cc78

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

.github/workflows/app-testing.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,29 +62,34 @@ jobs:
6262
with:
6363
python-version: ${{ matrix.python-version }}
6464

65+
# 3. Install uv
66+
- name: Install uv
67+
uses: astral-sh/setup-uv@v3
6568

66-
# 3. Install dependencies
67-
- name: Install Dependencies
68-
run: |
69-
python -m pip install --upgrade pip
70-
pip install ruff mypy pydantic
69+
# 4. Install python
70+
- name: Set up Python
71+
run: uv python install
72+
73+
# 5. Install the project
74+
- name: Install the project
75+
run: uv sync --all-extras --dev
7176

72-
# 4. Install missing stub packages
77+
# 6. Install missing stub packages
7378
- name: Install missing type stubs
7479
run: |
75-
mypy --install-types --non-interactive .
80+
uv run mypy --install-types --non-interactive .
7681
77-
# 5. Run Ruff Linter and show all errors
82+
# 7. Run Ruff Linter and show all errors
7883
- name: Run Ruff Linter
7984
run: |
80-
echo "${{ needs.check.outputs.changed_files }}" | xargs ruff check --output-format=github --config=pyproject.toml
85+
echo "${{ needs.check.outputs.changed_files }}" | xargs uv run ruff check --output-format=github --config=pyproject.toml
8186
8287
# 6. Run Mypy Type Checking and show all errors
8388
- name: Run Mypy Type Checking
8489
run: |
85-
echo "${{ needs.check.outputs.changed_files }}" | xargs mypy --config-file=pyproject.toml
90+
echo "${{ needs.check.outputs.changed_files }}" | xargs uv run mypy --config-file=pyproject.toml
8691
8792
# 7. Run Pytest
8893
- name: Run Pytest
8994
run: |
90-
pytest --maxfail=10 --disable-warnings --tb=short
95+
uv run pytest --maxfail=10 --disable-warnings --tb=short

0 commit comments

Comments
 (0)