Skip to content

Commit

Permalink
Update check.yml (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborbernat authored Sep 13, 2024
1 parent c596271 commit 580dffd
Showing 1 changed file with 20 additions and 15 deletions.
35 changes: 20 additions & 15 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 580dffd

Please sign in to comment.