From 580dffd03281bba560dfbeb80518d9b2f2b4a107 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= Date: Fri, 13 Sep 2024 15:09:44 -0700 Subject: [PATCH] Update check.yml (#302) --- .github/workflows/check.yml | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 545c040..198341f 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -33,18 +33,22 @@ jobs: - macos-latest steps: - - name: Setup python for test ${{ matrix.py }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.py }} - allow-prereleases: true - name: Install the latest version of uv uses: astral-sh/setup-uv@v2 with: enable-cache: true github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Setup python hatch + uses: actions/setup-python@v5 + with: + python-version: "3.12" - name: install hatch - run: uv pip install hatch --system + run: uv pip install --system --python 3.12 hatch + - name: Setup python for test ${{ matrix.py }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.py }} + allow-prereleases: true - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -88,16 +92,17 @@ jobs: steps: - name: Let us have colors run: echo "FORCE_COLOR=true" >> "$GITHUB_ENV" - - uses: actions/setup-python@v5 - with: - python-version: "3.12" - name: Install the latest version of uv uses: astral-sh/setup-uv@v2 with: enable-cache: true github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Setup python hatch + uses: actions/setup-python@v5 + with: + python-version: "3.12" - name: install hatch - run: uv pip install hatch --system + run: uv pip install --system --python 3.12 hatch - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -134,17 +139,17 @@ jobs: - { "name": "docs", "target": "build" } - { "name": "readme", "target": "run" } steps: - - name: Setup Python "3.12" - uses: actions/setup-python@v5 - with: - python-version: "3.12" - name: Install the latest version of uv uses: astral-sh/setup-uv@v2 with: enable-cache: true github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Setup python hatch + uses: actions/setup-python@v5 + with: + python-version: "3.12" - name: install hatch - run: uv pip install hatch --system + run: uv pip install --system --python 3.12 hatch - uses: actions/checkout@v4 with: fetch-depth: 0