Skip to content

Commit 9b303dc

Browse files
committed
update workflows
1 parent 9510c15 commit 9b303dc

File tree

2 files changed

+40
-27
lines changed

2 files changed

+40
-27
lines changed

.github/workflows/minimal-tests.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,24 @@ jobs:
3434
uses: actions/setup-python@v5
3535
with:
3636
python-version: ${{ matrix.python-version }}
37-
- name: Upgrade Pip
38-
run: python -m pip install --upgrade pip
39-
- name: Install Poetry
40-
run: python -m pip install poetry
37+
- name: Rust latest
38+
run: rustup update
39+
- name: Install uv
40+
uses: astral-sh/setup-uv@v5
41+
with:
42+
enable-cache: true
4143
- name: Install Requirements
42-
run: |
43-
poetry config virtualenvs.in-project true
44-
poetry config virtualenvs.path .venv
45-
poetry install -vvv
44+
run: uv sync --frozen --dev --verbose
45+
working-directory: ${{ github.workspace }}
4646
- name: Test Metadata
47-
run: poetry run pytest tests/unit/test_metadata.py
47+
run: uv run pytest tests/unit/test_metadata.py
48+
working-directory: ${{ github.workspace }}
4849
- name: Test Session
49-
run: poetry run pytest tests/unit/test_session.py
50+
run: uv run pytest tests/unit/test_session.py
51+
working-directory: ${{ github.workspace }}
5052
- name: Test Utils
51-
run: poetry run pytest tests/unit/test_utils.py
53+
run: uv run pytest tests/unit/test_utils.py
54+
working-directory: ${{ github.workspace }}
5255
- name: Test Moto
53-
run: poetry run pytest -n 4 tests/unit/test_moto.py
56+
run: uv run pytest -n 4 tests/unit/test_moto.py
57+
working-directory: ${{ github.workspace }}

.github/workflows/static-checking.yml

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,28 @@ jobs:
2626
uses: actions/setup-python@v5
2727
with:
2828
python-version: ${{ matrix.python-version }}
29+
- name: Install uv
30+
uses: astral-sh/setup-uv@v5
31+
with:
32+
enable-cache: true
2933
- name: Install Requirements
30-
run: |
31-
python -m pip install --upgrade pip
32-
python -m pip install poetry
33-
poetry config virtualenvs.create false --local
34-
poetry install --all-extras -vvv
35-
- name: ruff format check
36-
run: ruff format --check .
37-
- name: ruff check
38-
run: ruff check --output-format=github .
39-
- name: mypy check
40-
run: mypy --install-types --non-interactive awswrangler
41-
- name: Documentation check
42-
run: doc8 --max-line-length 120 docs/source
43-
- name: Check poetry.lock consistency with pyproject.toml
44-
run: poetry check --lock
34+
run: uv sync --frozen --all-extras --dev --verbose
35+
working-directory: ${{ github.workspace }}
36+
- name: Run ruff format
37+
working-directory: src/${{ matrix.package }}
38+
run: uv run --frozen ruff format --check .
39+
- name: Run ruff check
40+
working-directory: src/${{ matrix.package }}
41+
run: uv run --frozen ruff check --output-format=github .
42+
- name: Run mypy check
43+
working-directory: src/${{ matrix.package }}
44+
run: uv run --frozen mypy --install-types --non-interactive awswrangler
45+
- name: Run mypy check
46+
working-directory: src/${{ matrix.package }}
47+
run: uv run --frozen mypy --install-types --non-interactive awswrangler
48+
- name: Run documentation check
49+
working-directory: src/${{ matrix.package }}
50+
run: uv run --frozen doc8 --max-line-length 120 docs/source
51+
- name: Run uv lock check
52+
working-directory: src/${{ matrix.package }}
53+
run: uv lock --check

0 commit comments

Comments
 (0)