From 3be836ca58a48ef7e430264d160450b82e97a465 Mon Sep 17 00:00:00 2001 From: Kazuya Takei Date: Tue, 17 Sep 2024 01:15:30 +0900 Subject: [PATCH] fix: Update for current templates --- .github/workflows/main.yml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1efbf54..4beca6e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,25 +10,22 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + python-version: ['3.9', '3.10', '3.11', '3.12'] steps: - uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v5 + - uses: astral-sh/setup-uv@v2 + - name: Create demo project + run: | + uvx cookiecutter --no-input --output-dir=var . + - uses: actions/setup-python@v5 + id: 'setup-python' with: architecture: x64 python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: pip install uv cookiecutter pre-commit - - name: Create demo project - run: | - cookiecutter --no-input --output-dir=var . - name: Verify created project run: | cd var/demo - git init - git add . - uv sync + uv sync --frozen --python='${{ steps.setup-python.outputs.python-path }}' uv run pytest - uv run make -C doc dirhtml - pre-commit run --all-files + uv run make -C docs dirhtml + uvx pre-commit run --all-files