Skip to content

Commit

Permalink
Optimize CI (#631)
Browse files Browse the repository at this point in the history
  • Loading branch information
edenhaus authored Dec 6, 2024
1 parent 5f811d7 commit ebbc7fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,13 @@ jobs:
- name: ⤵️ Checkout repository
uses: actions/checkout@v4

- name: 🏗 Install uv
- name: 🏗 Install uv and Python
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
cache-local-path: ${{ env.UV_CACHE_DIR }}

- name: 🏗 Set up Python
uses: actions/setup-python@v5
with:
python-version-file: ".python-version"

- name: 🏗 Install the project
run: uv sync --locked --dev

Expand All @@ -55,15 +50,13 @@ jobs:
- name: ⤵️ Checkout repository
uses: actions/checkout@v4

- name: 🏗 Install uv
- name: 🏗 Install uv and Python ${{ matrix.python-version }}
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
cache-local-path: ${{ env.UV_CACHE_DIR }}

- name: 🏗 Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
python-version: ${{ matrix.python-version }}

- name: 🏗 Install the project
run: uv sync --locked --dev
Expand Down
2 changes: 1 addition & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[mypy]
python_version = 3.12
python_version = 3.13
show_error_codes = true
strict_equality = true
warn_incomplete_stub = true
Expand Down

0 comments on commit ebbc7fd

Please sign in to comment.